On Tue, Mar 22, 2011 at 12:51 PM, Brian C. Lane <[email protected]> wrote:
> On Tue, Mar 22, 2011 at 12:12:34PM -0400, Frederick Grose wrote: > > On Tue, Mar 22, 2011 at 11:46 AM, Brian C. Lane <[email protected]> wrote: > > > > > On Tue, Mar 22, 2011 at 11:09:01AM -0400, Frederick Grose wrote: > > > > Sorry, > > > > > > > > The followup patch, > > > > https://bugzilla.redhat.com/attachment.cgi?id=486551 > > > > is needed. > > > > > > > > > > != instead of ==, right? > > > > > > But that means SYSLINUXPATH will always be "" > > > > > > That doesn't make sense to me, it will break multi support. > > > > > > Brian > > > > > > > check=($(syslinux --version 2>&1)) || : > > if [[ 'syslinux' != $check ]]; then > > SYSLINUXPATH="" > > elif [ -n "$multi" ]; then > > SYSLINUXPATH="$LIVEOS/syslinux" > > else > > SYSLINUXPATH="syslinux" > > fi > > > > > > The check variable will contain the array returned by > > > > syslinux --version > > > > > > if the first member is NOT 'syslinux', then > > > > Ah, ok. I though $check would have the whole string. > > Thanks, > > -- > Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA > (PST8PDT) > Sorry. A more explicit expression would be, if [[ syslinux != ${check[0]} ]]; then ${check[*]} returns the whole array, syslinux 4.02 Copyright 1994-2010 H. Peter Anvin et al ${check[1]} == 4.02 --Fred
-- livecd mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/livecd
