[Fix: Install] incorrect check for `"$NVM_DIR/nvm.sh"`

Should be using `-f` if checking for a file.

Closes #887.
emparq 2015-10-30 18:48:08 -07:00 committed by Jordan Harband
parent 6638ac3318
commit 91ce41b702
1 changed files with 1 additions and 1 deletions

View File

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