X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=blobdiff_plain;f=lib.sh;h=aa4679914e2c32aaf1ca33ab39fb32fac6b1c498;hp=d19669b59e480d0c95e357c4c8abdeb6b6184112;hb=95b0c6d5aa17cccbc88ba9143ce8091d797c9e4d;hpb=4dc3f62f2747ca0d16538d7ca635a8b499b8ed7b diff --git a/lib.sh b/lib.sh index d19669b..aa46799 100644 --- a/lib.sh +++ b/lib.sh @@ -2,7 +2,7 @@ # # Their setup.sh script sources this file. -# Copyright (C) 2009-2014 Simon Ruderich +# Copyright (C) 2009-2018 Simon Ruderich # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -68,7 +68,7 @@ cmd_i() { # Usage: sed_i ... # -# sed -i is not compatible due to different implementations. See cmd_i. +# sed -i is not portable due to different implementations. See cmd_i. sed_i() { cmd_i sed "$@" } @@ -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