From ca201d2d3f3469a928c687bea88dc6220a27f2b4 Mon Sep 17 00:00:00 2001 From: heuzef Date: Tue, 6 Feb 2018 18:15:14 +0100 Subject: [PATCH] Add verbose mode (--verbose) --- defacement_check.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/defacement_check.pl b/defacement_check.pl index baedf92..6608f96 100644 --- a/defacement_check.pl +++ b/defacement_check.pl @@ -62,7 +62,9 @@ foreach $file (@files) # Results foreach (uniq(@found)) { $total_found++; - # print $total_found . " : " . $_ . "\n"; # VERBOSE MODE + if ($ARGV[0] eq '--verbose') { + print "\033[36m" . $total_found . " : " . $_ . "\n"; + } } if ($total_found == 0) { print "\033[32m" . $total_found . "\t\t=> " . $survey. "\n";