From 00c025f31a16e0281666c8bc57a2d7b39e3f5c54 Mon Sep 17 00:00:00 2001 From: DerLinkman Date: Tue, 5 Aug 2025 16:12:11 +0200 Subject: [PATCH] Update _modules/scripts/core.sh Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- _modules/scripts/core.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_modules/scripts/core.sh b/_modules/scripts/core.sh index 3728f5fb3..fe51e33ff 100644 --- a/_modules/scripts/core.sh +++ b/_modules/scripts/core.sh @@ -17,7 +17,7 @@ caller="${BASH_SOURCE[1]##*/}" get_installed_tools(){ for bin in openssl curl docker git awk sha1sum grep cut jq; do - if [[ -z $(which ${bin}) ]]; then echo "Cannot find ${bin}, exiting..."; exit 1; fi + if [[ -z $(command -v ${bin}) ]]; then echo "Cannot find ${bin}, exiting..."; exit 1; fi done if grep --help 2>&1 | head -n 1 | grep -q -i "busybox"; then echo -e "${LIGHT_RED}BusyBox grep detected, please install gnu grep, \"apk add --no-cache --upgrade grep\"${NC}"; exit 1; fi