diff --git a/BLFS/xsl/scripts.xsl b/BLFS/xsl/scripts.xsl index 5631164..e0eb94e 100644 --- a/BLFS/xsl/scripts.xsl +++ b/BLFS/xsl/scripts.xsl @@ -398,17 +398,17 @@ if [[ ! -f $BOOTPACKG ]] ; then fi if [[ -e unpacked ]] ; then - UNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'` - if ! [[ -d $UNPACKDIR ]]; then + BOOTUNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'` + if ! [[ -d $BOOTUNPACKDIR ]]; then rm unpacked tar -xvf $BOOTPACKG > unpacked - UNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'` + BOOTUNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'` fi else tar -xvf $BOOTPACKG > unpacked - UNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'` + BOOTUNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'` fi -cd $UNPACKDIR +cd $BOOTUNPACKDIR