Skip to content

Instantly share code, notes, and snippets.

@winks
Created November 19, 2015 14:59
Show Gist options
  • Save winks/5fa8f99ad30e40623095 to your computer and use it in GitHub Desktop.
Save winks/5fa8f99ad30e40623095 to your computer and use it in GitHub Desktop.
#!/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