Created
August 19, 2019 07:31
-
-
Save realtebo/b69e2bd0cef04e548b85ee7bb3ef00a6 to your computer and use it in GitHub Desktop.
chustom_check_git
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 | |
cd /var/www/credit-sales | |
git status --porcelain | grep php >> /dev/null | |
if [ $? -gt 0 ]; then | |
echo "CRITICAL, folder credit-sales modified" | |
exit 2 | |
fi | |
echo "OK, nothing modified" | |
exit 0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment