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 authored and Ricardo Constantino committed 2018-06-23 13:23:07 +01:00
1 parent 4d1269d9db
commit 4a0fcdfbd8
1 file changed
+1
+1
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