mirror of
https://git.proxmox.com/git/qemu-server
synced 2026-01-04 21:41:15 +00:00
restore_tar_archive: cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
a2f50f0172
commit
7dc7f315f3
@ -6673,14 +6673,9 @@ sub restore_tar_archive {
|
||||
$srcfd->close();
|
||||
$outfd->close();
|
||||
};
|
||||
my $err = $@;
|
||||
|
||||
if ($err) {
|
||||
|
||||
if (my $err = $@) {
|
||||
unlink $tmpfn;
|
||||
|
||||
tar_restore_cleanup($storecfg, "$tmpdir/qmrestore.stat") if !$opts->{info};
|
||||
|
||||
die $err;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user