Guest User

Untitled

a guest
Oct 16th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. SERROR=$(git status |grep -vP "\.erb$"| awk '/modified/ {system("puppet --confdi
  4. r=/tmp --vardir=/tmp --parseonly --ignoreimport "$3);}');
  5.  
  6. EXIT=0;
  7.  
  8. if [ "$SERROR" != "" ]; then
  9.  
  10. git status | awk '/modified/ {print $3; system("puppet --confdir=/tmp --vardir=/
  11. tmp --parseonly --ignoreimport "$3);}';
  12.  
  13. EXIT=1;
  14.  
  15. fi
  16.  
  17. exit $EXIT;
Add Comment
Please, Sign In to add comment