Skip to content

Commit 7f3c0bc

Browse files
committed
remove -z option
1 parent fac72bb commit 7f3c0bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing/open-ports.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function result {
4444

4545
function test_ports {
4646
for port in "${ports[@]}"; do
47-
test_port=$(nc -z ${HOST} ${port})
47+
test_port=$(nc ${HOST} ${port} -e "/bin/bash echo test")
4848
rc=$?
4949
result $rc port_${port}
5050
done

0 commit comments

Comments
 (0)