Fixed printf-calls to print only one string
This commit is contained in:
parent
7713e7e39d
commit
534d417b86
2
general_utils
Normal file → Executable file
2
general_utils
Normal file → Executable file
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user