mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 07:23:00 +00:00
build.sh: fix shellcheck errors
This commit is contained in:
parent
9d00eb26cf
commit
d6b5a4c01e
1 changed files with 1 additions and 1 deletions
2
build.sh
2
build.sh
|
@ -43,7 +43,7 @@ log_msg() {
|
||||||
# $1 - Command name to check for
|
# $1 - Command name to check for
|
||||||
check_command() {
|
check_command() {
|
||||||
set +e;
|
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
|
if [[ "${exit_code}" -ne 0 ]]; then
|
||||||
log_msg "Error: Couldn't locate $1. Make sure it's installed and in your path.";
|
log_msg "Error: Couldn't locate $1. Make sure it's installed and in your path.";
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue