]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
lib.sh: link(): add missing newline in error messages
authorSimon Ruderich <simon@ruderich.org>
Sun, 14 Sep 2014 14:47:53 +0000 (16:47 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sun, 14 Sep 2014 14:47:53 +0000 (16:47 +0200)
lib.sh

diff --git a/lib.sh b/lib.sh
index d19669b59e480d0c95e357c4c8abdeb6b6184112..70be68df0433531e27c5f7ab58e99bf8350a305e 100644 (file)
--- a/lib.sh
+++ b/lib.sh
@@ -154,14 +154,14 @@ link() {
     # Abort if the target file exists and is no symbolic link. Prevents
     # overwriting real files.
     if test -e "$target" && test ! -h "$target"; then
-        printf "link(): target '%s' exists already and is no symbolic link!" \
+        printf "link(): target '%s' exists already and is no symbolic link!\n" \
                "$target" >&2
         exit 1
     fi
 
     # Make sure the source exists.
     if test ! -e "$source"; then
-        printf "link(): source '%s' doesn't exist!" "$source" >&2
+        printf "link(): source '%s' doesn't exist!\n" "$source" >&2
         exit 1
     fi