From f98e09d9848762860ce7eeb0b993242d2ed2949b Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 15 Aug 2016 00:14:36 +0200 Subject: borg-restore.pl: Fix prototype warning Signed-off-by: Florian Pritz --- borg-restore.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'borg-restore.pl') 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 -- cgit v1.2.3-24-g4f1b