We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58d5096 commit 098c8deCopy full SHA for 098c8de
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
6
SECRETFILE=$(cat "${FILENAME}")
7
if [[ -f ${SECRETFILE} ]]; then
8
FILESTRIP=${FILENAME//FILE__/}
9
- if [[ $(tail -n1 "${SECRETFILE}" | wc -l) = 1 ]]; then
+ if [[ $(tail -n1 "${SECRETFILE}" | wc -l) != 0 ]]; then
10
echo "[env-init] Your secret: ${FILENAME##*/}"
11
echo " contains a trailing newline and may not work as expected"
12
fi
0 commit comments