Files

10 lines
268 B
Plaintext
Executable File

#!/usr/bin/with-contenv bash
if [ -n "${LOGS_TO_STDOUT}" ]; then
IFS='|' read -ra TAIL_LOGS <<< "$LOGS_TO_STDOUT"
echo "Executing: tail -F ${TAIL_LOGS[@]}"
tail -F "${TAIL_LOGS[@]}"
else
echo "**** Env var LOGS_TO_STDOUT is not set, sleeping ****"
fi