Skip to content

Commit 6a82a4a

Browse files
Merge pull request #4547 from epheph/master
Allow install.sh to be run without being the script dir
2 parents 2ab6d3d + bc3a761 commit 6a82a4a

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)