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
|
if ! command -v panic >/dev/null 2>&1; then
|
||||||
|
|
||||||
panic() {
|
panic() {
|
||||||
log_er "${*}"
|
log_er "DEBUG: panic suppressed: ${*}"
|
||||||
exit 1
|
printf '%s\n' "0042 DEBUG: panic suppressed: ${*}" >/dev/console 2>/dev/null || :
|
||||||
|
sleep 3
|
||||||
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user