Skip to content

Commit

Permalink
Allow install.sh to be run without being the script dir
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Scott Bigelow <epheph@gmail.com>
  • Loading branch information
epheph committed Jan 4, 2018
1 parent 59a8e65 commit a2eb40c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/ipfs/dist/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
# Installation script for ipfs. It tries to move $bin in one of the
# directories stored in $binpaths.

bin=ipfs
INSTALL_DIR=`dirname $0`

bin=$INSTALL_DIR/ipfs
binpaths="/usr/local/bin /usr/bin"

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

0 comments on commit a2eb40c

Please sign in to comment.