[Fix] Correct indent in install.sh

Peter Dave Hello 2017-04-05 05:01:54 +08:00 committed by Jordan Harband
parent a0534b720a
commit f524bcb973
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
1 changed files with 11 additions and 11 deletions

View File

@ -15,16 +15,16 @@ nvm_latest_version() {
} }
nvm_profile_is_bash_or_zsh() { nvm_profile_is_bash_or_zsh() {
local TEST_PROFILE local TEST_PROFILE
TEST_PROFILE="${1-}" TEST_PROFILE="${1-}"
case "${TEST_PROFILE-}" in case "${TEST_PROFILE-}" in
*"/.bashrc" | *"/.bash_profile" | *"/.zshrc") *"/.bashrc" | *"/.bash_profile" | *"/.zshrc")
return return
;; ;;
*) *)
return 1 return 1
;; ;;
esac esac
} }
# #
@ -126,7 +126,7 @@ install_nvm_from_git() {
echo "=> Compressing and cleaning up git repository" echo "=> Compressing and cleaning up git repository"
if ! command git --git-dir="$INSTALL_DIR"/.git --work-tree="$INSTALL_DIR" gc --aggressive --prune=now ; then if ! command git --git-dir="$INSTALL_DIR"/.git --work-tree="$INSTALL_DIR" gc --aggressive --prune=now ; then
echo >&2 "Your version of git is out of date. Please update it!" echo >&2 "Your version of git is out of date. Please update it!"
fi fi
return return
} }