mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-18 16:58:27 -04:00
Merge pull request #783 from piotrmaj/universal-stdout-logs
Fix issue with logs that contains space in the path
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
if [ -n "${LOGS_TO_STDOUT}" ]; then
|
if [ -n "${LOGS_TO_STDOUT}" ]; then
|
||||||
TAIL_LOGS=$(echo "$LOGS_TO_STDOUT" | sed 's#|# #g')
|
IFS='|' read -ra TAIL_LOGS <<< "$LOGS_TO_STDOUT"
|
||||||
echo "Executing: tail -F $TAIL_LOGS"
|
echo "Executing: tail -F ${TAIL_LOGS[@]}"
|
||||||
tail -F $TAIL_LOGS
|
tail -F "${TAIL_LOGS[@]}"
|
||||||
else
|
else
|
||||||
echo "**** Env var LOGS_TO_STDOUT is not set, sleeping ****"
|
echo "**** Env var LOGS_TO_STDOUT is not set, sleeping ****"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user