Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- SERROR=$(git status |grep -vP "\.erb$"| awk '/modified/ {system("puppet --confdi
- r=/tmp --vardir=/tmp --parseonly --ignoreimport "$3);}');
- EXIT=0;
- if [ "$SERROR" != "" ]; then
- git status | awk '/modified/ {print $3; system("puppet --confdir=/tmp --vardir=/
- tmp --parseonly --ignoreimport "$3);}';
- EXIT=1;
- fi
- exit $EXIT;
Add Comment
Please, Sign In to add comment