Created
March 29, 2019 17:03
-
-
Save morontt/84ee8eb73b9f7040f79683d03e775a06 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/sh | |
echo "Test CS-fixer" | |
echo "" | |
docker exec container_name sudo -u www-data /var/www/html/vendor/bin/php-cs-fixer fix --dry-run | |
if [ $? -gt 0 ] | |
then | |
echo "" | |
echo "Found ugly code, not pushing" | |
exit 1 | |
fi | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment