summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-10-18 12:29:46 +0000
committerOlivier Blin <oblin@mandriva.com>2007-10-18 12:29:46 +0000
commite476ff44c5ff503e55f6909a635474588aee6312 (patch)
tree5068bb850e54f86ec5c48d371e9485e3ce9885ec
parentcd7801efff6b2f334595eb9363a317f1c7fad6d0 (diff)
downloaddraklive-e476ff44c5ff503e55f6909a635474588aee6312.tar
draklive-e476ff44c5ff503e55f6909a635474588aee6312.tar.gz
draklive-e476ff44c5ff503e55f6909a635474588aee6312.tar.bz2
draklive-e476ff44c5ff503e55f6909a635474588aee6312.tar.xz
draklive-e476ff44c5ff503e55f6909a635474588aee6312.zip
unlink list file if loopbacks copy fails as well
-rwxr-xr-xdraklive2
1 files changed, 1 insertions, 1 deletions
diff --git a/draklive b/draklive
index e87bbb3..22678ac 100755
--- a/draklive
+++ b/draklive
@@ -1209,10 +1209,10 @@ sub record_usb_master {
'rsync', '-vdP', '--inplace', '--files-from=' . $list_file,
$loopbacks_source, $live->{mnt} . $live->{prefix}{media}{loopbacks},
);
+ unlink $list_file;
if (!$r) {
die "unable to copy loopback files\n";
}
- unlink $list_file;
cp_af(glob_(get_builddir($live) . $live->{prefix}{build}{files} . '/*'), $live->{mnt});
} unless $opts->{boot_only};