diff --git a/check_puppet_syntax/check_puppet_erb_helper.sh b/check_puppet_syntax/check_puppet_erb_helper.sh index 15f5104..8a01786 100755 --- a/check_puppet_syntax/check_puppet_erb_helper.sh +++ b/check_puppet_syntax/check_puppet_erb_helper.sh @@ -6,7 +6,7 @@ if [ ! -f "$f" ]; then exit 1; fi -$ERB_BIN -x -S 0 -T '-' $f | $RUBY_BIN -c 2>&1 | while read line; do +$ERB_BIN -P -x -S 0 -T '-' $f | $RUBY_BIN -c 2>&1 | while read line; do if echo "$line" | grep -q 'Syntax OK'; then echo "$f: $(tput setaf 2; tput bold)$line$( tput sgr0)"; else