On Tue, Mar 22, 2011 at 12:51 PM, Brian C. Lane <span dir="ltr"><<a href="mailto:bcl@redhat.com">bcl@redhat.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Tue, Mar 22, 2011 at 12:12:34PM -0400, Frederick Grose wrote:<br>
> On Tue, Mar 22, 2011 at 11:46 AM, Brian C. Lane <<a href="mailto:bcl@redhat.com">bcl@redhat.com</a>> wrote:<br>
><br>
> > On Tue, Mar 22, 2011 at 11:09:01AM -0400, Frederick Grose wrote:<br>
> > > Sorry,<br>
> > ><br>
> > > The followup patch,<br>
> > > <a href="https://bugzilla.redhat.com/attachment.cgi?id=486551" target="_blank">https://bugzilla.redhat.com/attachment.cgi?id=486551</a><br>
> > > is needed.<br>
> > ><br>
> ><br>
> > != instead of ==, right?<br>
> ><br>
> > But that means SYSLINUXPATH will always be ""<br>
> ><br>
> > That doesn't make sense to me, it will break multi support.<br>
> ><br>
> > Brian<br>
> ><br>
><br>
> check=($(syslinux --version 2>&1)) || :<br>
> if [[ 'syslinux' != $check ]]; then<br>
> SYSLINUXPATH=""<br>
> elif [ -n "$multi" ]; then<br>
> SYSLINUXPATH="$LIVEOS/syslinux"<br>
> else<br>
> SYSLINUXPATH="syslinux"<br>
> fi<br>
><br>
><br>
> The check variable will contain the array returned by<br>
><br>
> syslinux --version<br>
><br>
><br>
> if the first member is NOT 'syslinux', then<br>
><br>
<br>
</div>Ah, ok. I though $check would have the whole string.<br>
<br>
Thanks,<br>
<div><div></div><div class="h5"><br>
--<br>
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)<br>
</div></div></blockquote></div><br><span style="font-family: courier new,monospace;">Sorry. A more explicit expression would be,</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">if [[ syslinux != ${check[0]} ]]; then</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">${check[*]} returns the whole array,<br>
<br style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;">syslinux 4.02 Copyright 1994-2010 H. Peter Anvin et al</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"><br>
${check[1]} == 4.02</span><br><br> --Fred<br>