From a9fdfd1784df9bb656054cf72c7aa67d4d0fbd7e Mon Sep 17 00:00:00 2001 From: nyx Date: Thu, 31 Oct 2024 14:06:46 -0400 Subject: [PATCH] make command_exists interpret multiple values (#762) Co-authored-by: nyx --- core/tabs/common-script.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/tabs/common-script.sh b/core/tabs/common-script.sh index 12ab1146..396f358d 100644 --- a/core/tabs/common-script.sh +++ b/core/tabs/common-script.sh @@ -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() {