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, 1 insertions, 3 deletions
diff --git a/borg-restore.pl b/borg-restore.pl
index 27dea1f..6477381 100755
--- a/borg-restore.pl
+++ b/borg-restore.pl
@@ -266,9 +266,7 @@ sub restore {
printf "Restoring %s to %s from archive %s\n", $path, $destination, $archive->{archive};
my $basename = basename($path);
-
- # FIXME this returns incorrect results for /home vs /home/flo
- my $components_to_strip =()= dirname("/".$path) =~ /\//g;
+ my $components_to_strip =()= $path =~ /\//g;
debug(sprintf("CWD is %s", getcwd()));
debug(sprintf("Changing CWD to %s", $destination));