Fixed printf-calls to print only one string

This commit is contained in:
Gerhard Hoffmann 2022-06-06 17:02:31 +02:00
parent 7713e7e39d
commit 534d417b86
2 changed files with 2 additions and 2 deletions

2
general_utils Normal file → Executable file
View File

@ -25,6 +25,6 @@ exec_process_substitution () {
__result=${__result//[$'\r\n\t']/ } # remove \r\n\t from __result __result=${__result//[$'\r\n\t']/ } # remove \r\n\t from __result
log_debug "$func:${LINENO} result=$__result" log_debug "$func:${LINENO} result=$__result"
printf '%s' $__result printf '%s' "$__result"
return $__result_code return $__result_code
} }

View File

@ -29,7 +29,7 @@ latest_commit () {
if ! [ -z "$c" ]; then if ! [ -z "$c" ]; then
if grep -qE "^[[:xdigit:]]{6,}$" <<< $c; then if grep -qE "^[[:xdigit:]]{6,}$" <<< $c; then
log_debug "$func:${LINENO} commit -> $c" log_debug "$func:${LINENO} commit -> $c"
printf "%s\n" $c printf "%s\n" "$c"
else else
log_crit "$func:${LINENO} wrong format for commit c=$c" log_crit "$func:${LINENO} wrong format for commit c=$c"
fi fi