start.sh: Use -n instead of ! -z (#5567)

See https://github.com/koalaman/shellcheck/wiki/SC2236
This commit is contained in:
zSALLAZAR 2023-02-13 13:21:35 +01:00 committed by GitHub
parent fbaf8e3fc8
commit 6854830b6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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