From 6ef0288ca69c117f0840a5490434f6ba433b0190 Mon Sep 17 00:00:00 2001 From: Nick Dimiduk Date: Sun, 22 Sep 2024 15:24:14 +0200 Subject: [PATCH] bin/docker support warning message suppression from user config dir The `bin/docker` command should also honor the presence of `$XDG_CONFIG_HOME/containers/nodocker` when considering whether it should print the warning message. Signed-off-by: Nick Dimiduk --- docker/docker.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/docker.in b/docker/docker.in index 61e1b64c28..0b4aa838c2 100755 --- a/docker/docker.in +++ b/docker/docker.in @@ -1,4 +1,4 @@ #!/bin/sh -[ -e ${ETCDIR}/containers/nodocker ] || \ +[ -e ${ETCDIR}/containers/nodocker ] || [ -e "\${XDG_CONFIG_HOME-\$HOME/.config}/containers/nodocker" ] || \ echo "Emulate Docker CLI using podman. Create ${ETCDIR}/containers/nodocker to quiet msg." >&2 exec ${BINDIR}/podman "$@"