From 5d6095234a9650c8985b12a118fb017ec6520c5b Mon Sep 17 00:00:00 2001 From: Rene Rebe Date: Sat, 24 Jan 2004 09:03:20 +0000 Subject: [PATCH] fixed Create-ISO do not yield error messages when no numbered disks are present (e.g. only the install target is dumped into an ISO ...) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@2288 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- scripts/Create-ISO | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Create-ISO b/scripts/Create-ISO index a5a95596c..093428b77 100755 --- a/scripts/Create-ISO +++ b/scripts/Create-ISO @@ -169,7 +169,7 @@ done < $dat echo -n > $index for x in 0 $disks ; do dd=disk_${x}_data - for y in ${!dd} `cat ${pathspec}_${x}` ; do + for y in ${!dd} `cat ${pathspec}_${x} 2> /dev/null` ; do to=${y%=*} ; from=${y#*=} if [ -d $from ] ; then find $from -printf "disk$x $to%P\\n" >> $index @@ -219,7 +219,7 @@ for x in $disks ; do date "+ [%X] Creating ${isoprefix}_cd$x.iso ..." echo "This is disk #$x." > $dat # FIXME: current mkisofs does only accept one -path-list - cat ${pathspec}_${x} ${pathspec}_0 > ${pathspec}_current + cat ${pathspec}_${x} ${pathspec}_0 > ${pathspec}_current 2> /dev/null xxx -q -r -T -J -l -o ${isoprefix}_cd$x.iso -A "ROCK Linux - Disk $x" \ -P 'The ROCK Linux Project - http://www.rocklinux.org' \ -path-list ${pathspec}_current \