Skip to content

Commit 0b7b2ee

Browse files
committed
Turn off ANSI output when running puppet
1 parent 4ac8017 commit 0b7b2ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/plugins/pre_commit/checks/puppet.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def call(staged_files)
1717
def run_check(file)
1818
# We force puppet to display errors otherwise they will likely end up in the
1919
# error_log and not in stdout.
20-
result = `puppet parser validate #{file} 2>&1`
20+
result = `puppet parser validate --color=false #{file} 2>&1`
2121
# If PHP exited non-zero then there was a parse error.
2222
result.strip unless $? == 0
2323
end

0 commit comments

Comments
 (0)