From 66c0be06d0ef6c00189300bd20823a2b2bdeb306 Mon Sep 17 00:00:00 2001 From: Rafael Guterres Jeffman <rjeffman@redhat.com> Date: Wed, 16 Apr 2025 16:22:44 -0300 Subject: [PATCH] infra/image/shcontainer: Fix log message in container_tee Fix a log message in function container_tee and quote the temporary filename. Signed-off-by: Rafael Guterres Jeffman <rjeffman@redhat.com> --- infra/image/shcontainer | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infra/image/shcontainer b/infra/image/shcontainer index 71b086d5..c92cbf19 100644 --- a/infra/image/shcontainer +++ b/infra/image/shcontainer @@ -204,8 +204,8 @@ container_tee() { local destination=${2} tmpfile=$(mktemp /tmp/container-temp.XXXXXX) - log info "= Creating ${name}:${filename} from stdin =" - cat - > ${tmpfile} + log info "= Creating ${name}:${destination} from stdin =" + cat - > "${tmpfile}" podman cp "${tmpfile}" "${name}:${destination}" rm "${tmpfile}" echo -- GitLab