From 6719242f8d2ceb4ed783964e173223fdfbfe06aa Mon Sep 17 00:00:00 2001 From: Peter Waller Date: Tue, 8 Aug 2023 11:27:22 +0100 Subject: [PATCH] Drop '-p' from `nc -l` args It appears to be optional on an old Ubuntu installation, but in more recent versions of nc, -p is rejected with -l. --- test-scripts/check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-scripts/check.sh b/test-scripts/check.sh index 455ea8b..3706bfe 100755 --- a/test-scripts/check.sh +++ b/test-scripts/check.sh @@ -116,7 +116,7 @@ serve_file_http() { port=$1 file="$2" content_length="$(wc -c <"$file")" - (printf "HTTP/1.1 200 OK\r\nContent-Length: $content_length\r\n\r\n"; cat "$file") | nc -l -p $port + (printf "HTTP/1.1 200 OK\r\nContent-Length: $content_length\r\n\r\n"; cat "$file") | nc -l $port } # TESTS