Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -78,8 +78,10 @@ log_er() { printf '\e[91m[FATAL] %s \n\e[0m' "$*"; }
|
||||
if ! command -v panic >/dev/null 2>&1; then
|
||||
|
||||
panic() {
|
||||
log_er "${*}"
|
||||
exit 1
|
||||
log_er "DEBUG: panic suppressed: ${*}"
|
||||
printf '%s\n' "0042 DEBUG: panic suppressed: ${*}" >/dev/console 2>/dev/null || :
|
||||
sleep 3
|
||||
return 0
|
||||
}
|
||||
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user