From b390de2be5f2631fe13d8534832e3aa369381ddc Mon Sep 17 00:00:00 2001 From: TheSpad Date: Sat, 11 Nov 2023 20:02:51 +0000 Subject: [PATCH] !0 instead of 1 --- 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 cc1b62e..592df52 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-envfile/run +++ b/root/etc/s6-overlay/s6-rc.d/init-envfile/run @@ -6,7 +6,7 @@ if find /run/s6/container_environment/FILE__* -maxdepth 1 > /dev/null 2>&1; then SECRETFILE=$(cat "${FILENAME}") if [[ -f ${SECRETFILE} ]]; then FILESTRIP=${FILENAME//FILE__/} - if [[ $(tail -n1 "${SECRETFILE}" | wc -l) = 1 ]]; then + if [[ $(tail -n1 "${SECRETFILE}" | wc -l) != 0 ]]; then echo "[env-init] Your secret: ${FILENAME##*/}" echo " contains a trailing newline and may not work as expected" fi