Add check_utils helper
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
00cd75cf61
commit
b729c38fcb
1 changed files with 30 additions and 24 deletions
|
@ -9,6 +9,12 @@ function check_util() {
|
||||||
command -v ${1} >/dev/null 2>&1 || fail "Missing ${1} util"
|
command -v ${1} >/dev/null 2>&1 || fail "Missing ${1} util"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function check_utils() {
|
||||||
|
for util in "$@"; do
|
||||||
|
check_util "${util}"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
function debug() {
|
function debug() {
|
||||||
log_level_matches 0 || return 0
|
log_level_matches 0 || return 0
|
||||||
echo -e "${COLOR_PURPLE}$@${COLOR_PLAIN}"
|
echo -e "${COLOR_PURPLE}$@${COLOR_PLAIN}"
|
||||||
|
|
Loading…
Reference in a new issue