From 85962c86c67568fba9ff136c87e5d50213e968d0 Mon Sep 17 00:00:00 2001 From: Andinus Date: Tue, 17 Nov 2020 14:18:31 +0530 Subject: Warn if $gpg_bin is set to something other than "gpg" or "gpg2" --- leo.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/leo.pl b/leo.pl index 82157f9..7d82aea 100755 --- a/leo.pl +++ b/leo.pl @@ -85,6 +85,8 @@ my @gpg_recipients; if $options{gpg_recipients}; my $gpg_bin = $options{gpg_bin} || "gpg"; +warn "[WARN] \$gpg_bin is set to `$gpg_bin'" + unless $gpg_bin eq "gpg" or $gpg_bin eq "gpg2"; # Print help. HelpMessage() and exit 0 if scalar @ARGV == 0 or $options{help}; -- cgit 1.4.1-2-gfad0