]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - setup.sh
Don't use echo for data from the user.
[config/dotfiles.git] / setup.sh
index 197263de0aca28cd92d749de5adb1d6599c19afc..96b18054c8232723ecb362f8929424ae51074a43 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -33,11 +33,11 @@ terminal_available() {
 # Usage: <file> <name> <grep-string> <value>
 apply_optional_replacement() {
     if test -n "$4"; then
-        echo "$1: using $2 $4"
+        printf '%s: using %s %s\n' "$1" "$2" "$4"
         generate "$1" '' simple_cpp \
             "$3" -- "$4"
     else
-        echo "$1: removing $2 display"
+        printf '%s: removing %s display\n' "$1" "$2"
         grep_i -v "$3" "$1"
     fi
 }