From bae10a6582f42bab7c8b46e2817ed286ab7807c9 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 5 Aug 2015 23:50:38 +0900 Subject: [PATCH] [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. --- install | 1 + 1 file changed, 1 insertion(+) diff --git a/install b/install index ea5a461..d27c017 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