1
0
mirror of https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git synced 2025-12-15 11:22:43 +03:00

* fix log() handling of -i output

This commit is contained in:
Jake Buchholz Göktürk 2023-05-13 14:29:38 -07:00
parent 6b87f633f2
commit 6a95f31309

View File

@ -25,7 +25,7 @@ log() {
[ -z "$DEBUG" ] && [ "$level" = debug ] && return
shift
[ -n "$init" ] && echo "$0" >&2
[ -n "$init" ] && echo "$@" >&2
logger $stderr -p "$facility.$level" -t "$tag[$$]" "$@"
case "$level" in
crit|alert|emerg) exit 1 ;;