mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 22:31:51 +00:00
Merge pull request #198 from ArtemGordinsky/master
Adding a newline before the source string in the ".bash_profile"
This commit is contained in:
commit
eade411422
2
.gitignore
vendored
2
.gitignore
vendored
@ -6,3 +6,5 @@ alias
|
|||||||
# For testing
|
# For testing
|
||||||
bak
|
bak
|
||||||
.urchin.log
|
.urchin.log
|
||||||
|
|
||||||
|
.DS_Store
|
||||||
|
@ -43,6 +43,7 @@ fi
|
|||||||
|
|
||||||
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"
|
||||||
|
echo -e "\n" >> "$PROFILE"
|
||||||
echo $SOURCE_STR >> "$PROFILE"
|
echo $SOURCE_STR >> "$PROFILE"
|
||||||
else
|
else
|
||||||
echo "=> Source string already in $PROFILE"
|
echo "=> Source string already in $PROFILE"
|
||||||
|
Loading…
Reference in New Issue
Block a user