summaryrefslogtreecommitdiffstats
path: root/borg-restore.pl
diff options
context:
space:
mode:
Diffstat (limited to 'borg-restore.pl')
-rwxr-xr-xborg-restore.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/borg-restore.pl b/borg-restore.pl
index 6477381..fa0b0c2 100755
--- a/borg-restore.pl
+++ b/borg-restore.pl
@@ -76,7 +76,7 @@ package main;
use autodie;
use Carp::Assert;
-use Cwd qw(abs_path getcwd chdir);
+use Cwd qw(abs_path getcwd);
use Data::Dumper;
use DateTime;
use DB_File;
@@ -270,7 +270,7 @@ sub restore {
debug(sprintf("CWD is %s", getcwd()));
debug(sprintf("Changing CWD to %s", $destination));
- #mkdir($destination) unless -d $destination;
+ mkdir($destination) unless -d $destination;
chdir($destination) or die "Failed to chdir: $!";
# FIXME this doesn't behave as per docs yet