luci-base: Turn off pattern matching when generating distversion
Otherwize the distrevision may be displayed twice
if it contains some special matching patterns.
(For example I am using "git-$hash" in my own OpenWrt branch.)
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
(cherry picked from commit c1f0a9971a
)
This commit is contained in:
parent
84083ce54d
commit
a64448b16b
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
|
||||
if _G.DISTRIB_REVISION then
|
||||
distrevision = _G.DISTRIB_REVISION
|
||||
if not distversion:find(distrevision) then
|
||||
if not distversion:find(distrevision,1,true) then
|
||||
distversion = distversion .. " " .. distrevision
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue