Improve firmwarepath override (#1000)

* Revert accidental feeds change

* If firmware path lacks ../firmware on the end, just use as is.
This commit is contained in:
Tim Wilkinson 2023-12-07 16:52:53 -08:00 committed by GitHub
parent 04c68749f5
commit e23348800f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ if parms.button_refresh_fw then
local config_serverpath
for _, serverpath in ipairs(serverpaths)
do
config_serverpath = serverpath:match("^(.*)/firmware") .. "/afs/www/"
config_serverpath = (serverpath:match("^(.*)/firmware") or serverpath) .. "/afs/www/"
for line in io.popen(wget .. " -O - " .. config_serverpath .. "config.js 2> /dev/null"):lines()
do
local v = line:match("versions: {(.+)}")