diff options
author | Andinus <andinus@nand.sh> | 2020-11-17 17:19:07 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2020-11-17 17:19:07 +0530 |
commit | 8d98d15e8e3887d4c36f7e4beaabf645a7eace0e (patch) | |
tree | 15efe9f20b5c75f98518f4eed67fc56bf22de46b | |
parent | 2b70e9381e9ba3267d31fcae3f972a8568f36031 (diff) | |
download | leo-8d98d15e8e3887d4c36f7e4beaabf645a7eace0e.tar.gz |
Fix regex
-rwxr-xr-x | leo.pl | 2 |
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}; |