From 6dc5cc825dc30153789157439795f2ec5714f470 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sat, 10 Oct 2020 23:31:11 +0200 Subject: fix use printf (not non-posix echo -n) --- postfix/postfix.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'postfix') diff --git a/postfix/postfix.sh b/postfix/postfix.sh index a82d746..f4925a1 100755 --- a/postfix/postfix.sh +++ b/postfix/postfix.sh @@ -185,7 +185,7 @@ getlinesfromfile() { done replacements="$replacements;s/$oldparam/$newstring/" done - echo -n "$param = " + printf "%s = " "$param" catfirstfile "$param" | sed 's/#.*//' | tr '\n' ',' | sed -e 's/^[, ]*//;s/[, ]\+/,/g' -e 's/\^/ /g' -e "s/,\$//$replacements" } @@ -446,7 +446,7 @@ diff -ruNw "$confdir" "$tempdir" || if [ $? -gt 1 ]; then exit $?; else needs_re if [ "1" = "$FORCE" ]; then do_update=y elif [ "1" = "$needs_reload" ]; then - echo -n "Above is the intended changes. OK to update (y/N)? " + printf 'Above is the intended changes. OK to update (y/N)? ' read do_update fi case $do_update in -- cgit v1.2.3