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>
This commit is contained in:
Rafael Guterres Jeffman
2025-04-16 16:22:44 -03:00
parent dfa4bcb68f
commit 66c0be06d0

View File

@@ -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