summaryrefslogtreecommitdiffstats
path: root/script
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2017-04-02 22:07:56 +0200
committerFlorian Pritz <bluewind@xinu.at>2017-04-02 22:31:49 +0200
commit286751abf9661a93d3d1de53df98c06ea4c3ddb7 (patch)
treeddbc335e505efd891f64e8bda60895107b5fdf75 /script
parent7988bf4796a63c0fa233e7b462b58612cc90bb42 (diff)
downloadApp-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-xscript/borg-restore.pl2
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};