mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-05 00:15:44 +00:00
Fix podman-docker.sh under -eu shells (fixes #23628)
Signed-off-by: Georgi Chulkov <git@gch.bg>
This commit is contained in:
parent
f456b53a0e
commit
004c040ca2
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue