Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -40,25 +40,9 @@ while [ "${ciss_debug_countdown}" -gt 0 ]; do
|
||||
|
||||
done
|
||||
|
||||
printf "\e[93m[DEBUG] 0042() reached : countdown finished, checking panic availability \n\e[0m"
|
||||
printf "\e[93m[DEBUG] 0042() reached : countdown finished. \n\e[0m"
|
||||
|
||||
### Check panic command availability -------------------------------------------------------------------------------------------
|
||||
if ! command -v panic >/dev/null 2>&1; then
|
||||
|
||||
printf "\e[93m[DEBUG] 0042() panic : installing fallback panic() \n\e[0m"
|
||||
|
||||
panic() {
|
||||
printf '\e[91m[FATAL] %s \n\e[0m' "${*}" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
else
|
||||
|
||||
printf "\e[93m[DEBUG] 0042() panic : existing panic command available \n\e[0m"
|
||||
|
||||
fi
|
||||
|
||||
printf "\e[93m[DEBUG] 0042() reached : panic availability check finished \n\e[0m"
|
||||
sleep 3
|
||||
|
||||
### Declare variables ----------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user