Verified Commit 1ba323d6 authored by Karel Koci's avatar Karel Koci 🤘

localrepo: fix previous fix

Previous commit fixed problem for existing localrepo.lua but introduced
an error for non-existing script.
parent e09fa3e6
......@@ -4,6 +4,6 @@ This file is part of updater-ng-localrepo. Don't edit it.
-- Add local repositories (might be missing if not in use)
script_path = root_dir .. "usr/share/updater/localrepo/localrepo.lua"
if stat(script_path) ~= "" then
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