diff options
-rw-r--r-- | src/lpm.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpm.lua b/src/lpm.lua index d1155e4..a4cb851 100644 --- a/src/lpm.lua +++ b/src/lpm.lua @@ -2178,7 +2178,7 @@ function lpm.run(ARGS) error("unknown command: " .. ARGS[2]) elseif result == true and JSON then io.stdout:write(json.encode({ actions = actions, warnings = warnings })) - else + elseif type(result) == "function" then return result end end |