@@ -164,7 +164,13 @@ function M.run_hooks(source, target, hooks, root, home_override)
end
if hooks.run then
for _, cmd in ipairs(hooks.run) do
- local _, code = run_cmd("cd " .. target .. " && " .. cmd)
+ local output, code = run_cmd("cd " .. target .. " && " .. cmd)
+ if output ~= "" then
+ io.write(output)
+ if not output:match("\n$") then
+ io.write("\n")
+ end
+ end
if code ~= 0 then
io.stderr:write("warning: hook command failed: " .. cmd .. "\n")
end