Skip to content

Commit 90f5ed8

Browse files
author
nyx
committed
make command_exists interpret multiple values
1 parent 26d0adc commit 90f5ed8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/tabs/common-script.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ CYAN='\033[36m'
99
GREEN='\033[32m'
1010

1111
command_exists() {
12-
command -v "$1" >/dev/null 2>&1
12+
for cmd in "$@"; do
13+
command -v "$cmd" >/dev/null 2>&1 || return 1
14+
done
15+
return 0
1316
}
1417

1518
checkAURHelper() {

0 commit comments

Comments
 (0)