From ea7f9dddffe101294d6009770e76a4cddc18bd3c Mon Sep 17 00:00:00 2001 From: TheSpad Date: Sun, 28 Aug 2022 18:12:20 +0100 Subject: [PATCH] Standardise logic so it works cross-distro --- root/etc/s6-overlay/s6-rc.d/init-envfile/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/etc/s6-overlay/s6-rc.d/init-envfile/run b/root/etc/s6-overlay/s6-rc.d/init-envfile/run index 52560a5..1b9991a 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-envfile/run +++ b/root/etc/s6-overlay/s6-rc.d/init-envfile/run @@ -1,7 +1,7 @@ #!/usr/bin/with-contenv bash # shellcheck shell=bash -if [[ "$(find /var/run/s6/container_environment/ -maxdepth 1 -print0 | xargs)" == *"FILE__"* ]]; then +if [[ "$(find /var/run/s6/container_environment/*"FILE__"* -maxdepth 1 2>/dev/null)" ]]; then for FILENAME in /var/run/s6/container_environment/*; do if [[ "${FILENAME##*/}" == "FILE__"* ]]; then SECRETFILE=$(cat "${FILENAME}")