summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2020-10-10 23:31:11 +0200
committerJonas Smedegaard <dr@jones.dk>2020-10-10 23:31:11 +0200
commit6dc5cc825dc30153789157439795f2ec5714f470 (patch)
tree38f7014f53ee46ee53ca53444a5a1d17868ad71a
parent206e7c22244bdca8e6d2bb9de2c8830df05ec12d (diff)
fix use printf (not non-posix echo -n)
-rwxr-xr-xpostfix/postfix.sh4
1 files changed, 2 insertions, 2 deletions
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