mkfdubcd.sh: Shell script code error

Report new bugs here, or look at known issues of current and previous releases of UBCD.

Moderators: Icecube, StopSpazzing

Post Reply
Message
Author
matsuda
Posts: 1
Joined: Fri Mar 09, 2012 7:18 am

mkfdubcd.sh: Shell script code error

#1 Post by matsuda » Fri Mar 09, 2012 7:24 am

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

Post Reply