make command_exists interpret multiple values

This commit is contained in:
nyx 2024-10-05 02:36:23 -04:00
parent 26d0adc829
commit 90f5ed8238
No known key found for this signature in database
GPG Key ID: 9924455A3BB7D06C

View File

@ -9,7 +9,10 @@ CYAN='\033[36m'
GREEN='\033[32m'
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() {