Re: svn commit: r329585 - head/stand/lua

2018-02-19 Thread Kyle Evans
On Mon, Feb 19, 2018 at 3:54 PM, Alexander Nasonov wrote: > Kyle Evans wrote: >> +function core.isSingleUserBoot() >> + local single_user = loader.getenv("boot_single"); >> + return single_user ~= nil and single_user:lower() == "yes"; >> +end > > Just curious, why do you end all lines with

Re: svn commit: r329585 - head/stand/lua

2018-02-19 Thread Alexander Nasonov
Kyle Evans wrote: > +function core.isSingleUserBoot() > + local single_user = loader.getenv("boot_single"); > + return single_user ~= nil and single_user:lower() == "yes"; > +end Just curious, why do you end all lines with semi-colons? It's not very common in Lua code. This version looks

svn commit: r329585 - head/stand/lua

2018-02-19 Thread Kyle Evans
Author: kevans Date: Mon Feb 19 16:34:23 2018 New Revision: 329585 URL: https://svnweb.freebsd.org/changeset/base/329585 Log: stand/lua: Add core.isSingleUserBoot Modified: head/stand/lua/core.lua Modified: head/stand/lua/core.lua =