Skip to content
Myr

Nicer failure message when trying to install an invalid version. Fixes #285.

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

authored by Jordan Harband · committed by Jordan Harband · parent 5aa78f2 · Browse files · 1 file+5 added−0 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+5 added−0 removed

  • other:+5 added−0 removed

1 file+5 added−0 removed

modified:nvm.sh+5 added
306 unmodified lines
307 done308309 [ -d "$NVM_DIR/$VERSION" ] && echo "$VERSION is already installed." && return310311 if [ "$VERSION" = "N/A" ]; then312 echo "Version '$VERSION' not found - try \`nvm ls-remote\` to browse available versions."313 return 3314 fi315316 # skip binary install if no binary option specified.317 if [ $nobinary -ne 1 ]; then318 # shortcut - try the binary if possible.319 if [ -n "$os" ]; then
309 unmodified lines