mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-09-07 21:17:53 +00:00
fix errors due to use of unportable == operator
The `==` operator is not defined by POSIX and many test(1) (also spelled `[`) implementations do not support it. Replace uses of `==` with the POSIX-conformant `=` equality operator.
This commit is contained in:
@@ -4,7 +4,7 @@ mkdir -p ../../v0.2.3
|
||||
|
||||
die () { echo $@ ; exit 1; }
|
||||
|
||||
[ `expr $PATH : ".*v0.2.3/.*/bin"` == 0 ] || echo "WARNING: Unexpectedly found v0.2.3 already active" >&2
|
||||
[ `expr $PATH : ".*v0.2.3/.*/bin"` = 0 ] || echo "WARNING: Unexpectedly found v0.2.3 already active" >&2
|
||||
|
||||
. ../../nvm.sh
|
||||
nvm use v0.2.3 &&
|
||||
|
Reference in New Issue
Block a user