Merge pull request #393 from brycied00d/patch-1

[universal-stdout-logs] Use tail -F to follow rotated log files
This commit is contained in:
aptalca 2022-08-26 12:55:09 -04:00 committed by GitHub
commit c201cbffe6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
#!/usr/bin/with-contenv bash
TAIL_LOGS=$(echo "$LOGS_TO_STDOUT" | sed 's#|# -f #g')
TAIL_LOGS=$(echo "$LOGS_TO_STDOUT" | sed 's#|# #g')
echo "Executing: tail -f $TAIL_LOGS"
tail -f $TAIL_LOGS
echo "Executing: tail -F $TAIL_LOGS"
tail -F $TAIL_LOGS