Created
September 1, 2016 13:25
-
-
Save kinow/de445057dcfff1284f30ea85244e952e to your computer and use it in GitHub Desktop.
Composer without xdebug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
options=$(ls -1 /usr/lib/php/20151012/ | \ | |
grep --invert-match xdebug| \ | |
# remove problematic extensions | |
egrep --invert-match 'mysql|wddx|pgsql|opcache'| \ | |
sed --expression 's/\(.*\)/ -d extension=\1/'| \ | |
# join everything together back in one big line | |
tr --delete '\n' | |
) | |
# build the final command line | |
php -n $options ~/bin/composer.phar $* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment