Skip to content

Commit

Permalink
Mute ncat output
Browse files Browse the repository at this point in the history
  • Loading branch information
phillmac committed Jun 4, 2021
1 parent 712198a commit a16f394
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a16f394

Please sign in to comment.