diff options
author | Andinus <andinus@nand.sh> | 2020-08-27 15:13:02 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2020-08-27 15:13:02 +0530 |
commit | 8be914647597f53b23c5839dcdc15083fe09bdf8 (patch) | |
tree | debf8cf3c42a43f96294a9fc6563f3db5000ab37 | |
parent | 252af66a78927f8e10e07f7e289ba1b2f968a8a8 (diff) | |
download | leo-8be914647597f53b23c5839dcdc15083fe09bdf8.tar.gz |
Add environment variables for some options
-rwxr-xr-x | leo.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/leo.pl b/leo.pl index 8fb200c..b82ed74 100755 --- a/leo.pl +++ b/leo.pl @@ -14,6 +14,10 @@ GetOptions( qw{ verbose encrypt sign delete } ) or die "Error in command line arguments\n"; +$options{encrypt} = $ENV{LEO_ENCRYPT}; +$options{sign} = $ENV{LEO_SIGN}; +$options{delete} = $ENV{LEO_DELETE}; + my $gpg_fingerprint = "D9AE4AEEE1F1B3598E81D9DFB67D55D482A799FD"; my $archive_dir = "/tmp/archive"; my $ymd = ymd(); # YYYY-MM-DD. |