Rename PATH_ARRAY to TAIL_LOGS to be consistent with prior code

This commit is contained in:
Piotr Maj
2023-11-11 18:11:10 +01:00
parent 4b702eb59a
commit 4ad71311aa
@@ -1,9 +1,9 @@
#!/usr/bin/with-contenv bash
if [ -n "${LOGS_TO_STDOUT}" ]; then
IFS='|' read -ra PATH_ARRAY <<< "$LOGS_TO_STDOUT"
echo "Executing: tail -F ${PATH_ARRAY[@]}"
tail -F "${PATH_ARRAY[@]}"
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