add newline to printf

master
Koen Punt 2014-07-07 14:42:27 +02:00
parent e0537ce3df
commit ea198c9a19
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,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" "$SOURCE_STR" >> "$PROFILE" printf "%s\n" "$SOURCE_STR" >> "$PROFILE"
else else
echo "=> Source string already in $PROFILE" echo "=> Source string already in $PROFILE"
fi fi