We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47fa9e1 commit 96d8dffCopy full SHA for 96d8dff
1 file changed
library/lua/dfhack.lua
@@ -765,14 +765,15 @@ function dfhack.run_command_silent(...)
765
end
766
767
function dfhack.run_command(...)
768
- local output, status = _run_command(...)
769
- for i, fragment in pairs(output) do
770
- if type(fragment) == 'table' then
771
- dfhack.color(fragment[1])
772
- dfhack.print(fragment[2])
+ local result = _run_command(...)
+ for i, f in pairs(result) do
+ if type(f) == 'table' then
+ dfhack.color(f[1])
+ dfhack.print(f[2])
773
774
775
dfhack.color(COLOR_RESET)
776
+ return result.status
777
778
779
-- Per-save init file
0 commit comments