2012-10-11 07:17:09 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
. ../../../nvm.sh
|
2014-09-29 01:07:50 +08:00
|
|
|
|
|
|
|
die () { echo $@ ; exit 1; }
|
|
|
|
|
|
|
|
NVM_ALIAS_OUTPUT=$(nvm alias)
|
|
|
|
echo "$NVM_ALIAS_OUTPUT" | \grep -e '^test1 -> 0.0.1 (-> v0.0.1)$' \
|
2014-09-30 05:26:19 +08:00
|
|
|
|| die "did not find test1 alias"
|
2014-09-29 01:07:50 +08:00
|
|
|
echo "$NVM_ALIAS_OUTPUT" | \grep -e '^test2 -> 0.0.2 (-> v0.0.2)$' \
|
2014-09-30 05:26:19 +08:00
|
|
|
|| die "did not find test2 alias"
|
2014-09-29 01:07:50 +08:00
|
|
|
echo "$NVM_ALIAS_OUTPUT" | \grep -e '^test3 -> 0.0.3 (-> v0.0.3)$' \
|
2014-09-30 05:26:19 +08:00
|
|
|
|| die "did not find test3 alias"
|
2014-09-29 01:07:50 +08:00
|
|
|
echo "$NVM_ALIAS_OUTPUT" | \grep -e '^test4 -> 0.0.4 (-> v0.0.4)$' \
|
2014-09-30 05:26:19 +08:00
|
|
|
|| die "did not find test4 alias"
|
2014-09-29 01:07:50 +08:00
|
|
|
echo "$NVM_ALIAS_OUTPUT" | \grep -e '^test5 -> 0.0.5 (-> v0.0.5)$' \
|
2014-09-30 05:26:19 +08:00
|
|
|
|| die "did not find test5 alias"
|
2014-09-29 01:07:50 +08:00
|
|
|
echo "$NVM_ALIAS_OUTPUT" | \grep -e '^test6 -> 0.0.6 (-> v0.0.6)$' \
|
2014-09-30 05:26:19 +08:00
|
|
|
|| die "did not find test6 alias"
|
2014-09-29 01:07:50 +08:00
|
|
|
echo "$NVM_ALIAS_OUTPUT" | \grep -e '^test7 -> 0.0.7 (-> v0.0.7)$' \
|
2014-09-30 05:26:19 +08:00
|
|
|
|| die "did not find test7 alias"
|
2014-09-29 01:07:50 +08:00
|
|
|
echo "$NVM_ALIAS_OUTPUT" | \grep -e '^test8 -> 0.0.8 (-> v0.0.8)$' \
|
2014-09-30 05:26:19 +08:00
|
|
|
|| die "did not find test8 alias"
|
2014-09-29 01:07:50 +08:00
|
|
|
echo "$NVM_ALIAS_OUTPUT" | \grep -e '^test9 -> 0.0.9 (-> v0.0.9)$' \
|
2014-09-30 05:26:19 +08:00
|
|
|
|| die "did not find test9 alias"
|
2014-09-29 01:07:50 +08:00
|
|
|
echo "$NVM_ALIAS_OUTPUT" | \grep -e '^test10 -> 0.0.10 (-> v0.0.10)$' \
|
2014-09-30 05:26:19 +08:00
|
|
|
|| die "did not find test10 alias"
|
2014-09-29 01:07:50 +08:00
|
|
|
|