Fixed Speak
authorAndrew DeFaria <A.DeFaria@cpanel.net>
Tue, 2 Aug 2022 21:37:21 +0000 (14:37 -0700)
committerAndrew DeFaria <A.DeFaria@cpanel.net>
Tue, 2 Aug 2022 21:37:21 +0000 (14:37 -0700)
bin/speak
lib/Speak.pm

index 7b54945..97aceb1 100755 (executable)
--- a/bin/speak
+++ b/bin/speak
@@ -100,4 +100,4 @@ if ($opts{clipboard}) {
   } # if
 } # if
 
-speak quotemeta $msg;
+speak $msg;
index c98feca..4be475d 100644 (file)
@@ -126,6 +126,8 @@ Returns:
   # Log message to log file if $log was passed in.
   $log->msg($msg);
 
+  $msg = quotemeta $msg;
+
   my ($status, @output) = Execute "/usr/local/bin/gt \"$msg\"";
 
   if ($status) {