diff options
author | Andinus <andinus@nand.sh> | 2020-08-27 16:00:05 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2020-08-27 16:00:43 +0530 |
commit | b64034d27406519ef7aa5601b22c8855c5420abd (patch) | |
tree | 46a620d3b1ed1629f727f7b3e66d806ac7dfbe5f /README | |
parent | a263b887df4f22d12f119acb40c9f5ca8d76b3ca (diff) | |
download | leo-b64034d27406519ef7aa5601b22c8855c5420abd.tar.gz |
Add several paths to dispatch table, simplify table generation
I added a lot of things to profile, there was a lot of repetition in dispatch table so I moved it to a function. Aliases were used for inconvenient paths but I could've done this too: my %directories = ( ssh => "$ENV{HOME}/.ssh", pass => "$ENV{HOME}/.password-store", ); foreach my $dir (sort keys %directories) { $dispatch{$dir} = sub { archive("$archive_dir/${dir}_${ymd}.tar", "-C", "$directories{$dir}", "."); }; }
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions