From 5474add315d6c0fb006408bddabb7e2b058ac603 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 6 Dec 2007 10:01:28 +0000 Subject: [PATCH] fixing pldistros (ctd) --- mkfedora | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 -- 2.47.0