about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-11-17 17:19:07 +0530
committerAndinus <andinus@nand.sh>2020-11-17 17:19:07 +0530
commit8d98d15e8e3887d4c36f7e4beaabf645a7eace0e (patch)
tree15efe9f20b5c75f98518f4eed67fc56bf22de46b
parent2b70e9381e9ba3267d31fcae3f972a8568f36031 (diff)
downloadleo-8d98d15e8e3887d4c36f7e4beaabf645a7eace0e.tar.gz
Fix regex
-rwxr-xr-xleo.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/leo.pl b/leo.pl
index a82ef07..34a518f 100755
--- a/leo.pl
+++ b/leo.pl
@@ -83,7 +83,7 @@ my @gpg_recipients;
 
 my $gpg_bin = $options{gpg_bin} || "gpg";
 warn "[WARN] \$gpg_bin is set to `$gpg_bin'"
-    unless $gpg_bin =~ /^[gpg|gpg2]$/;
+    unless $gpg_bin =~ /^(gpg2?)$/;
 
 # Print help.
 HelpMessage() and exit 0 if scalar @ARGV == 0 or $options{help};