Allow install.sh to be run without being the script dir

License: MIT
Signed-off-by: Scott Bigelow <epheph@gmail.com>
This commit is contained in:
Scott Bigelow 2018-01-04 14:41:28 -08:00
parent 59a8e658dd
commit a2eb40c423

View File

@ -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