Page 1 of 1

[solved] Bug in CreateISOImage.sh

PostPosted: 02.10.2011, 00:32
by t3573r
There is again a bug in CreateISOImage.sh

At line 119

Code: Select all
if [ "$sys" == "o2k3" -o "$sys"=="o2k7" ]; then


is causing some problems due to which whatever system you gave, it always tries to build image for ofc.

The fix is to change the line to

Code: Select all
if [ "$sys" == "o2k3" -o "$sys" == "o2k7" ]; then

Re: Bug in CreateISOImage.sh

PostPosted: 02.10.2011, 08:37
by WSUSUpdateAdmin
Thanks, there were several more.
Fixed in http://trac.wsusoffline.net/browser/trunk (r294).
Regards
Torsten Wittrock

Re: Bug in CreateISOImage.sh

PostPosted: 02.10.2011, 10:27
by t3573r
BTW,

In shell script, "==" operator is same as the "=" operator. So You don't need to give "==" every where, its actually a bit redundant and fails in shells like busybox.