Skip to content
This repository was archived by the owner on Mar 27, 2020. It is now read-only.

Commit 7cb9365

Browse files
Uplink03dimaryaz
authored andcommitted
Fixed 'make install' generating wrong dropbox wrapper script (#3)
`make install` created the dropbox wrapper script with the wrong first line: -e #!/bin/bash This patch replaced the echo in the Makefile with a copy of an external file. The new dropbox file uses `dirname` to be path-agnostic.
1 parent 8a505b2 commit 7cb9365

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ clean:
1111

1212
install: libdropbox_ext4.so
1313
install $^ $(INSTALL_DIR)/lib/ && \
14-
echo -e "#!/bin/bash\n\nLD_PRELOAD=$(INSTALL_DIR)/lib/$^ exec /usr/bin/dropbox \"\$$@\"" > $(INSTALL_DIR)/bin/dropbox && \
15-
chmod 0755 $(INSTALL_DIR)/bin/dropbox
14+
install dropbox $(INSTALL_DIR)/bin/dropbox
1615

1716
uninstall:
1817
rm -f $(INSTALL_DIR)/bin/dropbox && \

dropbox

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
Dir=$(dirname "$0")
4+
5+
LD_PRELOAD="$Dir"/../lib/libdropbox_ext4.so exec /usr/bin/dropbox "$@"

0 commit comments

Comments
 (0)