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

Fixes #1915.
This commit is contained in:
Jordan Harband 2019-02-25 00:13:50 -08:00
parent 216c24fba0
commit 226487d358
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55

4
nvm.sh
View File

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