mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-13 23:51:51 +00:00
Update install.sh
Added .baschrc before .profile for ubuntu users.
This commit is contained in:
parent
5686d9a3bb
commit
189c3a2da1
@ -27,6 +27,8 @@ else
|
|||||||
PROFILE="$HOME/.bash_profile"
|
PROFILE="$HOME/.bash_profile"
|
||||||
elif [ -f "$HOME/.zshrc" ]; then
|
elif [ -f "$HOME/.zshrc" ]; then
|
||||||
PROFILE="$HOME/.zshrc"
|
PROFILE="$HOME/.zshrc"
|
||||||
|
elif [ -f "$HOME/.bashrc" ]; then
|
||||||
|
PROFILE="$HOME/.bashrc"
|
||||||
elif [ -f "$HOME/.profile" ]; then
|
elif [ -f "$HOME/.profile" ]; then
|
||||||
PROFILE="$HOME/.profile"
|
PROFILE="$HOME/.profile"
|
||||||
fi
|
fi
|
||||||
@ -36,7 +38,7 @@ SOURCE_STR="[ -s \$HOME/.nvm/nvm.sh ] && . \$HOME/.nvm/nvm.sh # This loads NVM"
|
|||||||
|
|
||||||
if [ -z "$PROFILE" ] || [ ! -f "$PROFILE" ] ; then
|
if [ -z "$PROFILE" ] || [ ! -f "$PROFILE" ] ; then
|
||||||
if [ -z $PROFILE ]; then
|
if [ -z $PROFILE ]; then
|
||||||
echo "=> Profile not found. Tried $HOME/.bash_profile and $HOME/.profile"
|
echo "=> Profile not found. Tried $HOME/.bash_profile , $HOME/.bashrc and $HOME/.profile"
|
||||||
else
|
else
|
||||||
echo "=> Profile $PROFILE not found"
|
echo "=> Profile $PROFILE not found"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user