From a06d882e6fd9a872b0c335a9cc904f9ee99fd603 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Tue, 23 Sep 2025 11:21:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(docker-exec-via-sock):=20=E5=B0=86=20printf?= =?UTF-8?q?=20=E6=9B=BF=E6=8D=A2=E4=B8=BA=20echo=20=E4=BB=A5=E7=AE=80?= =?UTF-8?q?=E5=8C=96=E9=94=99=E8=AF=AF=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-exec-via-sock.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-exec-via-sock.sh b/docker-exec-via-sock.sh index e6d0062..cda5c79 100644 --- a/docker-exec-via-sock.sh +++ b/docker-exec-via-sock.sh @@ -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 \ No newline at end of file