mirror of
https://github.com/nvm-sh/nvm.git
synced 2026-01-04 06:19:30 +08:00
[Tests] die() in tests should quote "$@" for echo
This commit is contained in:
committed by
Jordan Harband
parent
24f8ae5c46
commit
f7763c8ba9
@@ -3,7 +3,7 @@
|
||||
\. ../../../nvm.sh
|
||||
\. ../../common.sh
|
||||
|
||||
die () { echo $@ ; exit 1; }
|
||||
die () { echo "$@" ; exit 1; }
|
||||
|
||||
NVM_ALIAS_OUTPUT="$(nvm alias | strip_colors)"
|
||||
echo "$NVM_ALIAS_OUTPUT" | \grep -F 'test-stable-1 -> 0.0.1 (-> v0.0.1)' \
|
||||
|
||||
Reference in New Issue
Block a user