lib/funcs.sh: fixup issues

This commit is contained in:
Adrian Ho 2025-02-10 20:55:31 +08:00
parent 4998ace1c5
commit 35d7e524ae

View file

@ -1,3 +1,5 @@
# shellcheck shell=bash
# shellcheck disable=SC2034
# string formatters
if [[ -t 1 ]]
then
@ -17,6 +19,8 @@ Tty_underscore=$(Tty_escape 38)
Tty_bold=$(Tty_mkbold 39)
Tty_reset=$(Tty_escape 0)
msg_prefix=""
# fatal: Report fatal error
# USAGE: fatal <msg> ...
fatal() {
@ -54,7 +58,6 @@ need_progs() {
if [[ ${#missing[@]} -gt 0 ]]
then
fatal "Commands missing: ${missing[*]}"
exit 1
fi
}