TOOLS/autoload: Fixed broken "disabled" option
`--script-opts=autoload-disabled=yes` now properly stops the script from running.
This commit is contained in:
1 parent
4d1269d9db
commit
4a0fcdfbd8
1 file changed
+1
@@ -92,6 +92,7 @@ function find_and_add_entries()
|
||||
msg.trace(("dir: %s, filename: %s"):format(dir, filename))
|
||||
if o.disabled then
|
||||
msg.verbose("stopping: autoload disabled")
|
||||
return
|
||||
elseif #dir == 0 then
|
||||
msg.verbose("stopping: not a local path")
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user