From 534d417b86e841d6b73704ff80986ea9cb26b2e7 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Mon, 6 Jun 2022 17:02:31 +0200 Subject: [PATCH] Fixed printf-calls to print only one string --- general_utils | 2 +- git_helpers | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 general_utils diff --git a/general_utils b/general_utils old mode 100644 new mode 100755 index 522be45..6246c33 --- a/general_utils +++ b/general_utils @@ -25,6 +25,6 @@ exec_process_substitution () { __result=${__result//[$'\r\n\t']/ } # remove \r\n\t from __result log_debug "$func:${LINENO} result=$__result" - printf '%s' $__result + printf '%s' "$__result" return $__result_code } diff --git a/git_helpers b/git_helpers index a067d4d..be969d4 100755 --- a/git_helpers +++ b/git_helpers @@ -29,7 +29,7 @@ latest_commit () { if ! [ -z "$c" ]; then if grep -qE "^[[:xdigit:]]{6,}$" <<< $c; then log_debug "$func:${LINENO} commit -> $c" - printf "%s\n" $c + printf "%s\n" "$c" else log_crit "$func:${LINENO} wrong format for commit c=$c" fi