Merge pull request #952 from davemay99/install-fix-quotes

[Fix] install.sh: quote `$DETECTED_PROFILE`
Jordan Harband 2015-12-28 09:24:42 -08:00
commit f3cc95bc66
1 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@ nvm_detect_profile() {
DETECTED_PROFILE="$HOME/.zshrc"
fi
if [ -z $DETECTED_PROFILE ]; then
if [ -z "$DETECTED_PROFILE" ]; then
if [ -f "$PROFILE" ]; then
DETECTED_PROFILE="$PROFILE"
elif [ -f "$HOME/.profile" ]; then
@ -145,7 +145,7 @@ nvm_detect_profile() {
fi
fi
if [ ! -z $DETECTED_PROFILE ]; then
if [ ! -z "$DETECTED_PROFILE" ]; then
echo "$DETECTED_PROFILE"
fi
}