about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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};