From e23348800f24ed73e2dd7e5857ac1417f5ad4569 Mon Sep 17 00:00:00 2001 From: Tim Wilkinson Date: Thu, 7 Dec 2023 16:52:53 -0800 Subject: [PATCH] Improve firmwarepath override (#1000) * Revert accidental feeds change * If firmware path lacks ../firmware on the end, just use as is. --- files/www/cgi-bin/admin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/www/cgi-bin/admin b/files/www/cgi-bin/admin index 8b621a71..f21f1bf3 100755 --- a/files/www/cgi-bin/admin +++ b/files/www/cgi-bin/admin @@ -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: {(.+)}")