[Fix] Github should be GitHub

Peter Dave Hello 2017-03-09 23:02:08 +08:00 committed by Jordan Harband
parent 8e6201b5b1
commit 182a18d911
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
2 changed files with 2 additions and 2 deletions

2
nvm.sh
View File

@ -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##*/}"

View File

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