summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-08-05 23:50:38 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-08-05 23:50:38 +0900
commitbae10a6582f42bab7c8b46e2817ed286ab7807c9 (patch)
tree527885040f7b47e9b04099e92450abe900295dfe /install
parentc4cf90a3d22a4641633f366fe64b992a62dab13f (diff)
[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.
Diffstat (limited to 'install')
-rwxr-xr-xinstall1
1 files changed, 1 insertions, 0 deletions
diff --git a/install b/install
index ea5a4617..d27c0179 100755
--- a/install
+++ b/install
@@ -250,6 +250,7 @@ append_line() {
if [ -n "$line" ]; then
echo " - Already exists: line #$line"
else
+ echo >> "$2"
echo "$1" >> "$2"
echo " + Added"
fi