From: Thierry Parmentelat Date: Thu, 6 Dec 2007 10:01:28 +0000 (+0000) Subject: fixing pldistros (ctd) X-Git-Tag: 4.2-rc2~362 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=5474add315d6c0fb006408bddabb7e2b058ac603;p=build.git fixing pldistros (ctd) --- diff --git a/mkfedora b/mkfedora index 59075d69..f0612b5c 100755 --- a/mkfedora +++ b/mkfedora @@ -421,14 +421,13 @@ echo "* Removing unnecessary junk" >&3 pushd $vroot # Save precious files -tar --ignore-failed-read -cpf precious.tar $precious +[ -n "$precious" ] && tar --ignore-failed-read -cpf precious.tar $precious # Remove unnecessary junk -rm -rf $junk +[ -n "$junk" ] && rm -rf $junk # Restore precious files -tar -xpf precious.tar -rm -f precious.tar +[ -n "$precious" ] && tar -xpf precious.tar && rm -f precious.tar popd