Skip to content

Commit

Permalink
Drop '-p' from nc -l args
Browse files Browse the repository at this point in the history
It appears to be optional on an old Ubuntu installation, but in more
recent versions of nc, -p is rejected with -l.
  • Loading branch information
peterwaller-arm committed Aug 8, 2023
1 parent e4620da commit 6719242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test-scripts/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6719242

Please sign in to comment.