diff options
author | Florian Pritz <bluewind@xinu.at> | 2017-04-02 22:07:56 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2017-04-02 22:31:49 +0200 |
commit | 286751abf9661a93d3d1de53df98c06ea4c3ddb7 (patch) | |
tree | ddbc335e505efd891f64e8bda60895107b5fdf75 /script | |
parent | 7988bf4796a63c0fa233e7b462b58612cc90bb42 (diff) | |
download | App-BorgRestore-286751abf9661a93d3d1de53df98c06ea4c3ddb7.tar.gz App-BorgRestore-286751abf9661a93d3d1de53df98c06ea4c3ddb7.tar.xz |
Call borg with repo path instead of setting BORG_REPO
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'script')
-rwxr-xr-x | script/borg-restore.pl | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/script/borg-restore.pl b/script/borg-restore.pl index 48744e4..f42984e 100755 --- a/script/borg-restore.pl +++ b/script/borg-restore.pl @@ -239,8 +239,6 @@ sub main { # untaint PATH because we only expect this to run as root $ENV{PATH} = App::BorgRestore::Helper::untaint($ENV{PATH}, qr(.*)); - $ENV{BORG_REPO} = $App::BorgRestore::Settings::borg_repo unless $App::BorgRestore::Settings::borg_repo eq ""; - Getopt::Long::Configure ("bundling"); GetOptions(\%opts, "help|h", "debug", "update-cache|u", "destination|d=s", "time|t=s") or pod2usage(2); pod2usage(0) if $opts{help}; |