From 63672641a5d0baafb51e0e0f25a5696b1ee901ee Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 11 May 2015 01:46:18 -0700 Subject: [PATCH] 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. --- install.sh | 4 ++++ nvm.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/install.sh b/install.sh index 40087b9..ed2747b 100755 --- a/install.sh +++ b/install.sh @@ -2,6 +2,8 @@ set -e +{ # this ensures the entire script is downloaded # + nvm_has() { type "$1" > /dev/null 2>&1 } @@ -241,3 +243,5 @@ nvm_reset() { } [ "_$NVM_ENV" = "_testing" ] || nvm_do_install + +} # this ensures the entire script is downloaded # diff --git a/nvm.sh b/nvm.sh index 9403a71..be1e688 100755 --- a/nvm.sh +++ b/nvm.sh @@ -6,6 +6,8 @@ # Implemented by Tim Caswell # 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 #