Skip to content

Commit

Permalink
handle -p for creating the full dir chain for backups
Browse files Browse the repository at this point in the history
  • Loading branch information
akerl committed Sep 5, 2015
1 parent 7fa239f commit e0ea2cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/...
Expand Up @@ -244,7 +244,7 @@ sub do_backup {
print F "$file\n";
}
close F;
my $cmd = "(cd $home_dir; mkdir $backup_dir && cat $backup_list_file | cpio -dump $backup_dir)";
my $cmd = "(cd $home_dir; mkdir -p $backup_dir && cat $backup_list_file | cpio -dump $backup_dir)";
$class->_run_sys($cmd);
print color(32, "Backed up $n dot files to $backup_dir\n");
}
Expand Down

0 comments on commit e0ea2cb

Please sign in to comment.