From 6854830b6e802cd4bce66107294e262a1a3fb8d5 Mon Sep 17 00:00:00 2001 From: zSALLAZAR <59490940+zSALLAZAR@users.noreply.github.com> Date: Mon, 13 Feb 2023 13:21:35 +0100 Subject: [PATCH] start.sh: Use -n instead of ! -z (#5567) See https://github.com/koalaman/shellcheck/wiki/SC2236 --- start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start.sh b/start.sh index 63a9a273b..74b24591a 100755 --- a/start.sh +++ b/start.sh @@ -23,7 +23,7 @@ if [ "$PHP_BINARY" == "" ]; then if [ -f ./bin/php7/bin/php ]; then export PHPRC="" PHP_BINARY="./bin/php7/bin/php" - elif [[ ! -z $(type php 2> /dev/null) ]]; then + elif [[ -n $(type php 2> /dev/null) ]]; then PHP_BINARY=$(type -p php) else echo "Couldn't find a PHP binary in system PATH or $PWD/bin/php7/bin"