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
+3 -3
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