Created
September 25, 2016 17:58
-
-
Save minecrafter/93ba26b49b55ce2f14971f59d1a7082b to your computer and use it in GitHub Desktop.
This file contains 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 | |
# Clean up the existing phar | |
rm -f *.phar | |
# Check if phar.readonly is Off | |
if [ `php -r 'print ini_get("phar.readonly") ? "false" : "true";'` == false ]; then | |
echo "PHAR creation is not enabled in your php.ini. Please set phar.readonly = Off and try again." | |
exit 1 | |
fi | |
phar pack -f MyPocketMinePlugin.phar -x "(.git|.idea)" . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment