mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 22:31:51 +00:00
Finalize fix for #458
This commit is contained in:
parent
63f72b37df
commit
276c031c60
@ -122,7 +122,7 @@ if [ -z "$PROFILE" ] || [ ! -f "$PROFILE" ] ; then
|
|||||||
else
|
else
|
||||||
if ! grep -qc 'nvm.sh' "$PROFILE"; then
|
if ! grep -qc 'nvm.sh' "$PROFILE"; then
|
||||||
echo "=> Appending source string to $PROFILE"
|
echo "=> Appending source string to $PROFILE"
|
||||||
printf "%s\n" "$SOURCE_STR" >> "$PROFILE"
|
printf "$SOURCE_STR\n" >> "$PROFILE"
|
||||||
else
|
else
|
||||||
echo "=> Source string already in $PROFILE"
|
echo "=> Source string already in $PROFILE"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user