Skip to content

Commit 327066c

Browse files
committed
!0 instead of 1
1 parent ee49d28 commit 327066c

File tree

1 file changed

+1
-1
lines changed
  • root/etc/s6-overlay/s6-rc.d/init-envfile

1 file changed

+1
-1
lines changed

root/etc/s6-overlay/s6-rc.d/init-envfile/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if find /run/s6/container_environment/FILE__* -maxdepth 1 > /dev/null 2>&1; then
66
SECRETFILE=$(cat "${FILENAME}")
77
if [[ -f ${SECRETFILE} ]]; then
88
FILESTRIP=${FILENAME//FILE__/}
9-
if [[ $(tail -n1 "${SECRETFILE}" | wc -l) = 1 ]]; then
9+
if [[ $(tail -n1 "${SECRETFILE}" | wc -l) != 0 ]]; then
1010
echo "[env-init] Your secret: ${FILENAME##*/}"
1111
echo " contains a trailing newline and may not work as expected"
1212
fi

0 commit comments

Comments
 (0)