[ipxe-devel] [GitHub] Add 'equals' command [ipxe/ipxe GH-4]

Greg Jednaszewski jednaszewski at gmail.com
Thu Apr 7 16:08:56 UTC 2011


Hi,
> There are two small changes here.  The first is to add a space after 'echo -n output' so that prompts look a bit nicer.
> 
> The second is an 'equals' command that allows the user to do something like the following.  I tried to keep the code stylistically the same as the existing code.
> 
> echo -n Is this information correct? (y/n): && read answer
> equals ${answer} y && goto mainloop ||
> equals ${answer} Y && goto mainloop ||
> goto nextstep
> 
> If accepted, please let me know how I can help update the documentation on ipxe.org.
> 
> -- 
> Reply to this email directly or view it on GitHub:
> https://github.com/ipxe/ipxe/pull/4
Any comments related to this change?  You can see the changeset by following the link.  Or if it's easier for everybody, I can post a patch here instead of via github.

Thanks,
Greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20110407/39f2c7b0/attachment.htm>


More information about the ipxe-devel mailing list