projects
/
clearscm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0afcac
)
Added checking for shh file to be quite
author
Andrew DeFaria
<Andrew@DeFaria.com>
Fri, 16 Oct 2020 16:37:15 +0000
(09:37 -0700)
committer
Andrew DeFaria
<Andrew@DeFaria.com>
Fri, 16 Oct 2020 16:37:15 +0000
(09:37 -0700)
bin/announceEmail.pl
patch
|
blob
|
history
diff --git
a/bin/announceEmail.pl
b/bin/announceEmail.pl
index
94789e8
..
7a76fc4
100755
(executable)
--- a/
bin/announceEmail.pl
+++ b/
bin/announceEmail.pl
@@
-155,6
+155,12
@@
sub Connect2IMAP() {
sub Say($) {
my ($msg) = @_;
+ if (-f "$FindBin::Bin/shh") {
+ $log->msg("Not speaking because we were asked to be quiet - $msg");
+
+ return;
+ } # if
+
my ($status, @output) = Execute "/usr/local/bin/gt \"$msg\"";
$log->err("Unable to speak (Status: $status) - "