From: Chris Koeritz Date: Sat, 4 Nov 2017 20:34:13 +0000 (-0400) Subject: stopped printing debug noise X-Git-Tag: 2.140.90~89 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=034816d57d558537cfe1f38e4518df4895548881;p=feisty_meow.git stopped printing debug noise --- diff --git a/scripts/files/safedel.pl b/scripts/files/safedel.pl index 0fd25678..b34e852f 100644 --- a/scripts/files/safedel.pl +++ b/scripts/files/safedel.pl @@ -24,7 +24,7 @@ require "filename_helper.pl"; require "inc_num.pl"; require "zap_the_dir.pl"; -use Env qw(TMP OS); +use Env qw(TMP OS SHELL_DEBUG); #hmmm: need a usage statement. @@ -132,7 +132,9 @@ sub safedel { } } if (@deleted) { - print "Trashed [@deleted].\n"; + if ($SHELL_DEBUG != "") { + print "Trashed [@deleted].\n"; + } open(REPORT, ">>$TMP/zz_safedel_report.txt"); local($printable_date) = scalar(localtime());