|
|
|
@ -17,7 +17,7 @@ wget() {
@@ -17,7 +17,7 @@ wget() {
|
|
|
|
|
|
|
|
|
|
OUTPUT="$(nvm_get_latest 2>&1)" |
|
|
|
|
EXIT_CODE="$(nvm_get_latest >/dev/null 2>&1 ; echo $?)" |
|
|
|
|
[ "_$OUTPUT" = "_http://latest.nvm.sh did not redirect to the latest release on Github" ] \ |
|
|
|
|
[ "_$OUTPUT" = "_http://latest.nvm.sh did not redirect to the latest release on GitHub" ] \ |
|
|
|
|
|| die "failed redirect did not report correct error message, got '$OUTPUT'" |
|
|
|
|
[ "_$EXIT_CODE" = "_2" ] \ |
|
|
|
|
|| die "failed redirect did not exit with code 2, got $EXIT_CODE" |
|
|
|
|