TOOLS/autoload: Fixed broken "disabled" option

`--script-opts=autoload-disabled=yes` now
properly stops the script from running.
This commit is contained in:
Andreas Wennerberg 2018-06-20 23:06:27 +02:00 committed by Ricardo Constantino
parent 4d1269d9db
commit 4a0fcdfbd8
1 changed files with 1 additions and 0 deletions

View File

@ -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