about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-11-17 14:18:31 +0530
committerAndinus <andinus@nand.sh>2020-11-17 14:18:31 +0530
commit85962c86c67568fba9ff136c87e5d50213e968d0 (patch)
treed63e770a6252a886a68e5425e23929024c56951d
parent0b7d78d7c2d18ae4dc88580856a8de25f5ba1471 (diff)
downloadleo-85962c86c67568fba9ff136c87e5d50213e968d0.tar.gz
Warn if $gpg_bin is set to something other than "gpg" or "gpg2" v0.4.2
-rwxr-xr-xleo.pl2
1 files changed, 2 insertions, 0 deletions
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};