From d6b5a4c01e3f866cf5e82772079bf658858095cd Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sat, 11 Sep 2021 01:24:51 +0100 Subject: [PATCH] build.sh: fix shellcheck errors --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 3c6be47..504abc6 100755 --- a/build.sh +++ b/build.sh @@ -43,7 +43,7 @@ log_msg() { # $1 - Command name to check for check_command() { set +e; - which $1 >/dev/null 2>&1; exit_code=$? + command -v "$1" >/dev/null 2>&1; exit_code="$?"; if [[ "${exit_code}" -ne 0 ]]; then log_msg "Error: Couldn't locate $1. Make sure it's installed and in your path."; fi