Skip to content

Commit c738e58

Browse files
committed
Allow install.sh to be run without being the script dir
1 parent 59a8e65 commit c738e58

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmd/ipfs/dist/install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
# Installation script for ipfs. It tries to move $bin in one of the
44
# directories stored in $binpaths.
55

6-
bin=ipfs
6+
INSTALL_DIR=`dirname $0`
7+
8+
bin=$INSTALL_DIR/ipfs
79
binpaths="/usr/local/bin /usr/bin"
810

911
# This variable contains a nonzero length string in case the script fails

0 commit comments

Comments
 (0)