btrbk: bugfix: fixed bug when "commit_delete" configuration option is not set

pull/30/head
Axel Burri 2015-03-28 15:03:43 +01:00
parent 83e541ac0c
commit be6547c1bd
1 changed files with 1 additions and 1 deletions

2
btrbk
View File

@ -789,7 +789,7 @@ sub btrfs_subvolume_delete($@)
push(@real_targets, $t);
}
die if(scalar(@targets) != scalar(@real_targets));
my $commit_delete = config_key($config, "btrfs_commit_delete");
my $commit_delete = config_key($config, "btrfs_commit_delete") // "";
DEBUG "[btrfs] delete" . ($commit_delete ? " (commit-$commit_delete):" : ":");
DEBUG "[btrfs] subvolume: $_" foreach(@targets);
my $options = "";