about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-10-15 18:26:32 +0530
committerAndinus <andinus@nand.sh>2020-10-15 18:26:32 +0530
commitbb75f71105233f6a197ae2945e524132376a89fb (patch)
tree187aa0d40afa263fc815f8ecab0d52a789646138
parent5924071b7c85e90f37b61ddfb755483686de76a1 (diff)
downloadleo-bb75f71105233f6a197ae2945e524132376a89fb.tar.gz
Add new option in config v0.2.1
-rwxr-xr-xleo.pl2
-rw-r--r--share/leo.conf3
2 files changed, 4 insertions, 1 deletions
diff --git a/leo.pl b/leo.pl
index 074223a..01708ad 100755
--- a/leo.pl
+++ b/leo.pl
@@ -70,7 +70,7 @@ $backup_dir .= "/$ymd";
 path($backup_dir)->mkpath; # Create backup directory.
 
 my $gpg_fingerprint = $options{gpg_fingerprint} || "`nil'";
-my @gpg_recipients = split / /, $options{gpg_recipient};
+my @gpg_recipients = split / /, $options{gpg_recipients};
 my $gpg_bin = $options{gpg_bin} || "gpg";
 
 # Print help.
diff --git a/share/leo.conf b/share/leo.conf
index 3256d9a..8ccfb02 100644
--- a/share/leo.conf
+++ b/share/leo.conf
@@ -1,6 +1,9 @@
 backup_dir = /home/andinus/backups
 
 gpg_fingerprint = D9AE4AEEE1F1B3598E81D9DFB67D55D482A799FD
+# You don't have to include your key in gpg_recipients, it's added by
+# default. Add multiple keys seperated by a space.
+gpg_recipients = D9AE4AEEE1F1B3598E81D9DFB67D55D482A799FD
 gpg_bin = gpg2
 
 signify_seckey = /home/andinus/.totally_not_my_key.sec