From 004c040ca2caa1a6148c1be192f0861cda73b42a Mon Sep 17 00:00:00 2001 From: Georgi Chulkov Date: Thu, 15 Aug 2024 17:15:52 +0300 Subject: [PATCH] Fix podman-docker.sh under -eu shells (fixes #23628) Signed-off-by: Georgi Chulkov --- docker/podman-docker.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/podman-docker.sh b/docker/podman-docker.sh index cd07e361e0..2ce2f7da3b 100644 --- a/docker/podman-docker.sh +++ b/docker/podman-docker.sh @@ -1,10 +1,10 @@ # DOCKER_HOST initialization -if [ -z "$DOCKER_HOST" ]; then +if [ -z "${DOCKER_HOST-}" ]; then if [ $(id -u) -eq 0 ]; then export DOCKER_HOST=unix:///run/podman/podman.sock else - if [ -n "$XDG_RUNTIME_DIR" ]; then + if [ -n "${XDG_RUNTIME_DIR-}" ]; then export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/podman/podman.sock fi fi