mirror of
https://github.com/gromgit/homebrew-fuse.git
synced 2025-12-05 23:34:43 +00:00
lib/funcs.sh: fixup issues
This commit is contained in:
parent
4998ace1c5
commit
35d7e524ae
1 changed files with 4 additions and 1 deletions
|
|
@ -1,3 +1,5 @@
|
||||||
|
# shellcheck shell=bash
|
||||||
|
# shellcheck disable=SC2034
|
||||||
# string formatters
|
# string formatters
|
||||||
if [[ -t 1 ]]
|
if [[ -t 1 ]]
|
||||||
then
|
then
|
||||||
|
|
@ -17,6 +19,8 @@ Tty_underscore=$(Tty_escape 38)
|
||||||
Tty_bold=$(Tty_mkbold 39)
|
Tty_bold=$(Tty_mkbold 39)
|
||||||
Tty_reset=$(Tty_escape 0)
|
Tty_reset=$(Tty_escape 0)
|
||||||
|
|
||||||
|
msg_prefix=""
|
||||||
|
|
||||||
# fatal: Report fatal error
|
# fatal: Report fatal error
|
||||||
# USAGE: fatal <msg> ...
|
# USAGE: fatal <msg> ...
|
||||||
fatal() {
|
fatal() {
|
||||||
|
|
@ -54,7 +58,6 @@ need_progs() {
|
||||||
if [[ ${#missing[@]} -gt 0 ]]
|
if [[ ${#missing[@]} -gt 0 ]]
|
||||||
then
|
then
|
||||||
fatal "Commands missing: ${missing[*]}"
|
fatal "Commands missing: ${missing[*]}"
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue