diff --git a/scripts/functions.sh b/scripts/functions.sh index 017a44c..96002ac 100644 --- a/scripts/functions.sh +++ b/scripts/functions.sh @@ -3,10 +3,10 @@ function serveQueue() { local queue_item - while read -r queue_item + while read -r queue_item do - echo -e "HTTP/1.1 200 OK\n\n ${queue_item}" | ncat -l -p "${LISTEN_PORT:-1500}" - done < <( + echo -e "HTTP/1.1 200 OK\n\n ${queue_item}" | ncat -l -p "${LISTEN_PORT:-1500}" >/dev/null + done < <( while : do echo "Fetching stale list" >&2