Verified Commit e09fa3e6 authored by Karel Koci's avatar Karel Koci 🤘

localrepo: fix script existence detection

parent e1a27cb5
......@@ -3,7 +3,7 @@ This file is part of updater-ng-localrepo. Don't edit it.
]]
-- Add local repositories (might be missing if not in use)
script_path = "file://" .. root_dir .. "usr/share/updater/localrepo/localrepo.lua"
if stat(script_path) == "f" then
Script("localrepo", script_path)
script_path = root_dir .. "usr/share/updater/localrepo/localrepo.lua"
if stat(script_path) ~= "" then
Script("file://" .. script_path)
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment