Don't output spaces after the 'Status:' and 'Error:' lines.
This commit is contained in:
parent
7099bc7529
commit
e7f705bd73
1 changed files with 3 additions and 3 deletions
|
|
@ -18,8 +18,8 @@ die() {
|
|||
# 1 = Temporary error (eg, max concurrent).
|
||||
# 2 = Perminant error.
|
||||
# $2 = The error message to output (if any).
|
||||
printf "%s: %s%b" "Status" "${1:-2}" "\0"
|
||||
[[ -n "$2" ]] && printf "%s: %s%b" "Error" "$2" "\0"
|
||||
printf "%s:%s%b" "Status" "${1:-2}" "\0"
|
||||
[[ -n "$2" ]] && printf "%s:%s%b" "Error" "$2" "\0"
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
|
@ -80,7 +80,7 @@ else
|
|||
(( QS_l > MAX_RESULTS )) && QS_l="$MAX_RESULTS"
|
||||
|
||||
# Give success status as checks have passed.
|
||||
printf "%s: %s%b" "Status" "0" "\0"
|
||||
printf "%s:%s%b" "Status" "0" "\0"
|
||||
|
||||
I=1
|
||||
# shellcheck disable=SC2154
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue