Skip to content

Instantly share code, notes, and snippets.

@morontt
Created March 29, 2019 17:03
Show Gist options
  • Save morontt/84ee8eb73b9f7040f79683d03e775a06 to your computer and use it in GitHub Desktop.
Save morontt/84ee8eb73b9f7040f79683d03e775a06 to your computer and use it in GitHub Desktop.
#!/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