projects
/
clearscm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated update system
[clearscm.git]
/
lib
/
Speak.pm
diff --git
a/lib/Speak.pm
b/lib/Speak.pm
index
0869ed4
..
d462490
100644
(file)
--- a/
lib/Speak.pm
+++ b/
lib/Speak.pm
@@
-47,6
+47,7
@@
use warnings;
use base 'Exporter';
use FindBin;
use base 'Exporter';
use FindBin;
+use Clipboard;
use lib "$FindBin::Bin/../lib";
use lib "$FindBin::Bin/../lib";
@@
-103,15
+104,19
@@
Returns:
=cut
if (-f "$FindBin::Bin/shh") {
=cut
if (-f "$FindBin::Bin/shh") {
+ $msg .= ' [silent]';
if ($log) {
if ($log) {
- $log->msg(
"Not speaking because we were asked to be quiet - $msg"
);
+ $log->msg(
$msg
);
} else {
} else {
- verbose
"Not speaking because we were asked to be quiet - $msg"
;
+ verbose
$msg
;
} # if
return;
} # if
} # if
return;
} # if
+ # Handle the case where $msg is not passed in. Then use the clipboard;
+ $msg = Clipboard->paste unless $msg;
+
# Handle the case where $msg is a filehandle
$msg = <$msg> if ref $msg eq 'GLOB';
# Handle the case where $msg is a filehandle
$msg = <$msg> if ref $msg eq 'GLOB';