mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 13:22:28 +00:00
make command_exists interpret multiple values (#762)
Co-authored-by: nyx <nnyyxxxx@users.noreply.github.com>
This commit is contained in:
parent
e29ca044c0
commit
a9fdfd1784
|
@ -9,7 +9,10 @@ CYAN='\033[36m'
|
||||||
GREEN='\033[32m'
|
GREEN='\033[32m'
|
||||||
|
|
||||||
command_exists() {
|
command_exists() {
|
||||||
command -v "$1" >/dev/null 2>&1
|
for cmd in "$@"; do
|
||||||
|
command -v "$cmd" >/dev/null 2>&1 || return 1
|
||||||
|
done
|
||||||
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
checkAURHelper() {
|
checkAURHelper() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user