From 91ce41b7022345b595c387ec2d9b27eb08385253 Mon Sep 17 00:00:00 2001 From: emparq Date: Fri, 30 Oct 2015 18:48:08 -0700 Subject: [PATCH] [Fix: Install] incorrect check for `"$NVM_DIR/nvm.sh"` Should be using `-f` if checking for a file. Closes #887. --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 6ea8d36..5d92310 100755 --- a/install.sh +++ b/install.sh @@ -89,7 +89,7 @@ install_nvm_as_script() { # Downloading to $NVM_DIR mkdir -p "$NVM_DIR" - if [ -d "$NVM_DIR/nvm.sh" ]; then + if [ -f "$NVM_DIR/nvm.sh" ]; then echo "=> nvm is already installed in $NVM_DIR, trying to update the script" else echo "=> Downloading nvm as script to '$NVM_DIR'"