Add wrapping curly braces to ensure that the entire scripts are downloaded.

If the closing curly brace isn't present, the script will error out.
This commit is contained in:
Jordan Harband
2015-05-11 01:46:18 -07:00
parent 94bba31de3
commit 63672641a5
2 changed files with 8 additions and 0 deletions

4
nvm.sh
View File

@@ -6,6 +6,8 @@
# Implemented by Tim Caswell <tim@creationix.com>
# with much bash help from Matthew Ranney
{ # this ensures the entire script is downloaded #
NVM_SCRIPT_SOURCE="$_"
nvm_has() {
@@ -1783,3 +1785,5 @@ elif [ -n "$VERSION" ]; then
elif nvm_rc_version >/dev/null 2>&1; then
nvm use >/dev/null
fi
} # this ensures the entire script is downloaded #