Merge pull request #723 from 981213/pr_disable_pattern
luci-base:Turn off pattern matching when generating distversion
This commit is contained in:
commit
6415c04d13
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ if pcall(dofile, "/etc/openwrt_release") and _G.DISTRIB_DESCRIPTION then
|
||||||
distversion = _G.DISTRIB_DESCRIPTION
|
distversion = _G.DISTRIB_DESCRIPTION
|
||||||
if _G.DISTRIB_REVISION then
|
if _G.DISTRIB_REVISION then
|
||||||
distrevision = _G.DISTRIB_REVISION
|
distrevision = _G.DISTRIB_REVISION
|
||||||
if not distversion:find(distrevision) then
|
if not distversion:find(distrevision,1,true) then
|
||||||
distversion = distversion .. " " .. distrevision
|
distversion = distversion .. " " .. distrevision
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue