mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
lualoader: Fix parsing of negative number loader.conf(5) variables
They would previously cause errors, as the regex for these did not tolerate a leading negative sign, and the variable would simply not parse.
This commit is contained in:
parent
5ccac9f972
commit
90486977de
1 changed files with 1 additions and 1 deletions
|
|
@ -198,7 +198,7 @@ local pattern_table = {
|
|||
},
|
||||
-- env_var=num
|
||||
{
|
||||
str = "^%s*([%w%p]+)%s*=%s*(%d+)%s*(.*)",
|
||||
str = "^%s*([%w%p]+)%s*=%s*(-?%d+)%s*(.*)",
|
||||
process = function(k, v)
|
||||
if setEnv(k, processEnvVar(v)) ~= 0 then
|
||||
print(MSG_FAILSETENV:format(k, tostring(v)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue