Don't output spaces after the 'Status:' and 'Error:' lines.

This commit is contained in:
Darren 'Tadgy' Austin 2024-08-11 20:00:44 +01:00
commit e7f705bd73

View file

@ -18,8 +18,8 @@ die() {
# 1 = Temporary error (eg, max concurrent). # 1 = Temporary error (eg, max concurrent).
# 2 = Perminant error. # 2 = Perminant error.
# $2 = The error message to output (if any). # $2 = The error message to output (if any).
printf "%s: %s%b" "Status" "${1:-2}" "\0" printf "%s:%s%b" "Status" "${1:-2}" "\0"
[[ -n "$2" ]] && printf "%s: %s%b" "Error" "$2" "\0" [[ -n "$2" ]] && printf "%s:%s%b" "Error" "$2" "\0"
exit 1 exit 1
} }
@ -80,7 +80,7 @@ else
(( QS_l > MAX_RESULTS )) && QS_l="$MAX_RESULTS" (( QS_l > MAX_RESULTS )) && QS_l="$MAX_RESULTS"
# Give success status as checks have passed. # Give success status as checks have passed.
printf "%s: %s%b" "Status" "0" "\0" printf "%s:%s%b" "Status" "0" "\0"
I=1 I=1
# shellcheck disable=SC2154 # shellcheck disable=SC2154