summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
authorBenjamin Drung <benjamin.drung@cloud.ionos.com>2018-12-10 16:52:47 +0100
committerBenjamin Drung <benjamin.drung@cloud.ionos.com>2018-12-18 13:37:58 +0100
commit3650731f3332d544ee84946d91141da4626606b8 (patch)
treeb25b79018001d8a96b94ee0f3ffd8b07cd3a3d8f /scripts/functions
parent2bab73b939f196c3dd86988d4d95f71152f18f4c (diff)
Replace 'echo -n' by printf
In POSIX sh, echo flags are undefined. Busybox and dash support 'echo -n', but better be on the safe side by using printf instead. Signed-off-by: Benjamin Drung <benjamin.drung@cloud.ionos.com>
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/functions b/scripts/functions
index 57ebd0d..8a08827 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -3,7 +3,7 @@
_log_msg()
{
if [ "${quiet?}" = "y" ]; then return; fi
- echo -n "$*"
+ printf "%s" "$*"
}
log_success_msg()