mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 22:31:51 +00:00
Merge pull request #952 from davemay99/install-fix-quotes
[Fix] install.sh: quote `$DETECTED_PROFILE`
This commit is contained in:
commit
f3cc95bc66
@ -131,7 +131,7 @@ nvm_detect_profile() {
|
|||||||
DETECTED_PROFILE="$HOME/.zshrc"
|
DETECTED_PROFILE="$HOME/.zshrc"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z $DETECTED_PROFILE ]; then
|
if [ -z "$DETECTED_PROFILE" ]; then
|
||||||
if [ -f "$PROFILE" ]; then
|
if [ -f "$PROFILE" ]; then
|
||||||
DETECTED_PROFILE="$PROFILE"
|
DETECTED_PROFILE="$PROFILE"
|
||||||
elif [ -f "$HOME/.profile" ]; then
|
elif [ -f "$HOME/.profile" ]; then
|
||||||
@ -145,7 +145,7 @@ nvm_detect_profile() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -z $DETECTED_PROFILE ]; then
|
if [ ! -z "$DETECTED_PROFILE" ]; then
|
||||||
echo "$DETECTED_PROFILE"
|
echo "$DETECTED_PROFILE"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user