[install] Add an extra new line character

so that it doesn't corrupt file that doesn't end with a new line
character. Close #311.
This commit is contained in:
Junegunn Choi 2015-08-05 23:50:38 +09:00
parent c4cf90a3d2
commit bae10a6582

View File

@ -250,6 +250,7 @@ append_line() {
if [ -n "$line" ]; then
echo " - Already exists: line #$line"
else
echo >> "$2"
echo "$1" >> "$2"
echo " + Added"
fi