fixing pldistros (ctd)
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 6 Dec 2007 10:01:28 +0000 (10:01 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 6 Dec 2007 10:01:28 +0000 (10:01 +0000)
mkfedora

index 59075d6..f0612b5 100755 (executable)
--- 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