[solved] Bug in CreateISOImage.sh

[solved] Bug in CreateISOImage.sh

Postby t3573r » 02.10.2011, 00:32

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
t3573r
 

Re: Bug in CreateISOImage.sh

Postby WSUSUpdateAdmin » 02.10.2011, 08:37

Thanks, there were several more.
Fixed in http://trac.wsusoffline.net/browser/trunk (r294).
Regards
Torsten Wittrock
Last edited by aker on 28.07.2013, 18:10, edited 1 time in total.
Reason: Trac Link aktualisiert
WSUSUpdateAdmin
Administrator
 
Posts: 2217
Joined: 07.07.2009, 14:38

Re: Bug in CreateISOImage.sh

Postby t3573r » 02.10.2011, 10:27

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.
t3573r
 


Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest