Browse Source

[Fix] `install`: error out when an argument has `---`

Fixes #1915.
Jordan Harband 6 years ago
parent
commit
226487d358
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
  1. 4
      nvm.sh

4
nvm.sh

@ -2520,6 +2520,10 @@ nvm() { @@ -2520,6 +2520,10 @@ nvm() {
NVM_UPGRADE_NPM=0
while [ $# -ne 0 ]; do
case "$1" in
---*)
nvm_err 'arguments with `---` are not supported - this is likely a typo'
return 55;
;;
-s)
shift # consume "-s"
nobinary=1

Loading…
Cancel
Save