Page 1 of 1

mkfdubcd.sh: Shell script code error

Posted: Fri Mar 09, 2012 7:24 am
by matsuda
The script complained about me not having gzip installed, which was wrong, so I tried to find what was going on.
Line 108 was the culprit.

Line 98-111

MKISOFS=''
for i in $PATH ; do
if [ -x "$i/mkisofs" ] ; then
MKISOFS="$i/mkisofs"
break
fi
done
GZIP=''
for i in $PATH ; do
if [ -x "$i/gzip" ] ; then
MKISOFS="$i/gzip"
break
fi
done

Just change it to the following and everything will run fine:

MKISOFS=''
for i in $PATH ; do
if [ -x "$i/mkisofs" ] ; then
MKISOFS="$i/mkisofs"
break
fi
done
GZIP=''
for i in $PATH ; do
if [ -x "$i/gzip" ] ; then
GZIP="$i/gzip"
break
fi
done