mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-06-17 13:52:56 -04:00
Fix issue with logs that contains space in the path: wrap tail argument in quotes to prevent the faulty behavior as per https://stackoverflow.com/a/43793896
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
if [ -n "${LOGS_TO_STDOUT}" ]; then
|
||||
TAIL_LOGS=$(echo "$LOGS_TO_STDOUT" | sed 's#|# #g')
|
||||
echo "Executing: tail -F $TAIL_LOGS"
|
||||
tail -F $TAIL_LOGS
|
||||
tail -F "$TAIL_LOGS"
|
||||
else
|
||||
echo "**** Env var LOGS_TO_STDOUT is not set, sleeping ****"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user