-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow install.sh to be run without being the script dir #4547
Conversation
License: MIT Signed-off-by: Scott Bigelow <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching that, one comment, then LGTM.
cmd/ipfs/dist/install.sh
Outdated
@@ -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` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use $(..)
syntax instead of backticks.
License: MIT Signed-off-by: Scott Bigelow <[email protected]>
cmd/ipfs/dist/install.sh
Outdated
bin=ipfs | ||
INSTALL_DIR=$(dirname $0) | ||
|
||
bin=$INSTALL_DIR/ipfs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, one more comment. Put the value here in quotes:
bin="$INSTALL_DIR/ipfs"
Otherwise any spaces in the INSTALL_DIR
path will break this
License: MIT Signed-off-by: Scott Bigelow <[email protected]>
Sure thing, definitely correct to quote. 2 line change, 2 bugs 😎 |
This is a very simple change, but took me a few minutes to resolve, since the documentation is specifically broken related to this.
https://ipfs.io/docs/install/#installing-from-a-prebuilt-package