stopped printing debug noise
authorChris Koeritz <fred@gruntose.com>
Sat, 4 Nov 2017 20:34:13 +0000 (16:34 -0400)
committerChris Koeritz <fred@gruntose.com>
Sat, 4 Nov 2017 20:34:13 +0000 (16:34 -0400)
scripts/files/safedel.pl

index 0fd25678045e95c10b5acef0852aec2bf64c578f..b34e852feb770f226f41c1f5ce55bf0f776b3477 100644 (file)
@@ -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());