From 1088b4b00fe52309a75aa8508d425010fa6cd475 Mon Sep 17 00:00:00 2001 From: Artem Date: Wed, 27 Feb 2013 11:43:05 +0200 Subject: [PATCH 1/2] Ignoring the ".DS_Store" files on OS X --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 32d72b6..6d21b3b 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,5 @@ alias # For testing bak .urchin.log + +.DS_Store From 9c7da6cec3d34a1b265d6e0e72440714709843bb Mon Sep 17 00:00:00 2001 From: Artem Date: Wed, 27 Feb 2013 11:50:08 +0200 Subject: [PATCH 2/2] Adding a newline before the source string in the ".bash_profile" Resolved Issue #197 --- install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 234716f..ea746bf 100755 --- a/install.sh +++ b/install.sh @@ -12,7 +12,7 @@ fi # Cloning to $NVM_TARGET git clone git://github.com/creationix/nvm.git $NVM_TARGET -echo +echo # Detect profile file, .bash_profile has precedence over .profile if [ ! -z "$1" ]; then @@ -28,7 +28,7 @@ fi SOURCE_STR="[[ -s "$NVM_TARGET/nvm.sh" ]] && . "$NVM_TARGET/nvm.sh" # This loads NVM" if [ -z "$PROFILE" ] || [ ! -f "$PROFILE" ] ; then - if [ -z $PROFILE ]; then + if [ -z $PROFILE ]; then echo "=> Profile not found" else echo "=> Profile $PROFILE not found" @@ -36,13 +36,14 @@ if [ -z "$PROFILE" ] || [ ! -f "$PROFILE" ] ; then echo "=> Append the following line to the correct file yourself" echo echo -e "\t$SOURCE_STR" - echo + echo echo "=> Close and reopen your terminal to start using NVM" exit fi if ! grep -qc 'nvm.sh' $PROFILE; then echo "=> Appending source string to $PROFILE" + echo -e "\n" >> "$PROFILE" echo $SOURCE_STR >> "$PROFILE" else echo "=> Source string already in $PROFILE"