From 8d98d15e8e3887d4c36f7e4beaabf645a7eace0e Mon Sep 17 00:00:00 2001 From: Andinus Date: Tue, 17 Nov 2020 17:19:07 +0530 Subject: Fix regex --- leo.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}; -- cgit 1.4.1-2-gfad0