Created
November 19, 2015 14:59
-
-
Save winks/5fa8f99ad30e40623095 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 | |
ERR=0 | |
for f in $(git diff --name-only HEAD HEAD~1); do | |
./build/check_puppet_syntax.sh $f | |
TMP=$? | |
if [ $TMP -ne 0 ]; then | |
ERR=$(($ERR + $TMP)) | |
fi | |
done | |
exit $ERR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment