1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

more robust check for bz2 extension

This commit is contained in:
Bruce Weirdan 2018-03-02 03:08:10 +02:00 committed by Matthew Brown
parent 632790e39e
commit 742179bc6f

View File

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