From: Mark Huang Date: Thu, 18 May 2006 22:30:22 +0000 (+0000) Subject: - fix removal of junk; let bash expand the wildcards X-Git-Tag: bootcd-3.4-2~75 X-Git-Url: http://git.onelab.eu/?p=bootcd.git;a=commitdiff_plain;h=474f431d4a34525f91cddb3a92772946bb6a1eeb - fix removal of junk; let bash expand the wildcards - remove precious tarball when done --- diff --git a/prep.sh b/prep.sh index b6aae97..778aadb 100755 --- a/prep.sh +++ b/prep.sh @@ -8,7 +8,7 @@ # Mark Huang # Copyright (C) 2004-2006 The Trustees of Princeton University # -# $Id: prep.sh,v 1.5 2006/05/18 21:52:51 mlhuang Exp $ +# $Id: prep.sh,v 1.6 2006/05/18 22:18:07 mlhuang Exp $ # PATH=/sbin:/bin:/usr/sbin:/usr/bin @@ -152,13 +152,14 @@ pushd $bootcd echo "* Removing unnecessary junk" # Save precious files -tar --ignore-failed-read -cpf precious.tar "${precious[@]}" +tar --ignore-failed-read -cpf precious.tar ${precious[*]} # Remove unnecessary junk -rm -rf "${junk[@]}" +rm -rf ${junk[*]} # Restore precious files tar -xpf precious.tar +rm -f precious.tar popd