fix(docker-exec-via-sock): 将 printf 替换为 echo 以简化错误输出

This commit is contained in:
严浩
2025-09-23 11:21:43 +08:00
parent 6c27561447
commit a06d882e6f

View File

@@ -201,6 +201,6 @@ else
log "command failed with exit code $exit_code"
log "output from container:"
# 将错误输出打印到 stderr
printf '%s\n' "$output" >&2
echo "$output" >&2
exit "$exit_code"
fi