[Fix] Github should be GitHub
parent
8e6201b5b1
commit
182a18d911
2
nvm.sh
2
nvm.sh
|
@ -64,7 +64,7 @@ nvm_get_latest() {
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
if [ -z "${NVM_LATEST_URL}" ]; then
|
if [ -z "${NVM_LATEST_URL}" ]; then
|
||||||
nvm_err "http://latest.nvm.sh did not redirect to the latest release on Github"
|
nvm_err "http://latest.nvm.sh did not redirect to the latest release on GitHub"
|
||||||
return 2
|
return 2
|
||||||
fi
|
fi
|
||||||
nvm_echo "${NVM_LATEST_URL##*/}"
|
nvm_echo "${NVM_LATEST_URL##*/}"
|
||||||
|
|
|
@ -17,7 +17,7 @@ wget() {
|
||||||
|
|
||||||
OUTPUT="$(nvm_get_latest 2>&1)"
|
OUTPUT="$(nvm_get_latest 2>&1)"
|
||||||
EXIT_CODE="$(nvm_get_latest >/dev/null 2>&1 ; echo $?)"
|
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'"
|
|| die "failed redirect did not report correct error message, got '$OUTPUT'"
|
||||||
[ "_$EXIT_CODE" = "_2" ] \
|
[ "_$EXIT_CODE" = "_2" ] \
|
||||||
|| die "failed redirect did not exit with code 2, got $EXIT_CODE"
|
|| die "failed redirect did not exit with code 2, got $EXIT_CODE"
|
||||||
|
|
Loading…
Reference in New Issue