[Fix] `install`: error out when an argument has `---`
Fixes #1915.
parent
216c24fba0
commit
226487d358
4
nvm.sh
4
nvm.sh
|
@ -2520,6 +2520,10 @@ nvm() {
|
||||||
NVM_UPGRADE_NPM=0
|
NVM_UPGRADE_NPM=0
|
||||||
while [ $# -ne 0 ]; do
|
while [ $# -ne 0 ]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
---*)
|
||||||
|
nvm_err 'arguments with `---` are not supported - this is likely a typo'
|
||||||
|
return 55;
|
||||||
|
;;
|
||||||
-s)
|
-s)
|
||||||
shift # consume "-s"
|
shift # consume "-s"
|
||||||
nobinary=1
|
nobinary=1
|
||||||
|
|
Loading…
Reference in New Issue