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:
Fraser Tweedale
2014-02-21 20:59:50 +10:00
parent 4a5f5203d0
commit a3331ffdb0
3 changed files with 4 additions and 4 deletions

View File

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