From 286751abf9661a93d3d1de53df98c06ea4c3ddb7 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 2 Apr 2017 22:07:56 +0200 Subject: Call borg with repo path instead of setting BORG_REPO Signed-off-by: Florian Pritz --- script/borg-restore.pl | 2 -- 1 file changed, 2 deletions(-) (limited to 'script') 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}; -- cgit v1.2.3-24-g4f1b