summaryrefslogtreecommitdiffstats
path: root/lib/App
diff options
context:
space:
mode:
Diffstat (limited to 'lib/App')
-rw-r--r--lib/App/BorgRestore.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/App/BorgRestore.pm b/lib/App/BorgRestore.pm
index d5bb56b..4891ec9 100644
--- a/lib/App/BorgRestore.pm
+++ b/lib/App/BorgRestore.pm
@@ -250,6 +250,7 @@ sub restore {
$log->debugf("Changing CWD to %s", $destination);
mkdir($destination) unless -d $destination;
chdir($destination) or die "Failed to chdir: $!";
+ # TODO chdir back to original after restore
my $final_destination = abs_path($basename);
$final_destination = App::BorgRestore::Helper::untaint($final_destination, qr(.*));