build.sh: fix shellcheck errors

This commit is contained in:
Starbeamrainbowlabs 2021-09-11 01:24:51 +01:00
parent 9d00eb26cf
commit d6b5a4c01e
No known key found for this signature in database
GPG Key ID: 1BE5172E637709C2

@ -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