Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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

authored by emparq · committed by Jordan Harband · parent 6638ac3 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:install.sh+1 added-1 removed
87 unmodified lines
88 NVM_EXEC_SOURCE=$(nvm_source script-nvm-exec)8990 # Downloading to $NVM_DIR91 mkdir -p "$NVM_DIR"92 if [ -d "$NVM_DIR/nvm.sh" ]; then92 if [ -f "$NVM_DIR/nvm.sh" ]; then93 echo "=> nvm is already installed in $NVM_DIR, trying to update the script"94 else95 echo "=> Downloading nvm as script to '$NVM_DIR'"96 fi
171 unmodified lines