From 742179bc6f78c32c8a2b546b4b78266e0fc271cc Mon Sep 17 00:00:00 2001 From: Bruce Weirdan Date: Fri, 2 Mar 2018 03:08:10 +0200 Subject: [PATCH] more robust check for bz2 extension --- bin/build-phar.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/build-phar.sh b/bin/build-phar.sh index f61963c33..1b1753540 100755 --- a/bin/build-phar.sh +++ b/bin/build-phar.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -if ! ( php -m | grep -q bz2 ) ; then +if ! php -r 'extension_loaded("bz2") or exit(1);' ; then echo "You need to install (or enable) bz2 php extension" exit 1 fi