Skip to content

Commit

Permalink
Fixed the netcat logic
Browse files Browse the repository at this point in the history
  • Loading branch information
petedyerarm committed Jan 22, 2024
1 parent fbf35bf commit 4d0be82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fw-tools/edge-testnet
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ test_L3() {
}

test_L4() {
_nc() {
if [[ $(nc -v -w 1 "$1" "$2" >>"$L4T" 2>&1) -eq 0 ]]; then
_nc(){
if nc -v -w 1 "$1" "$2" >>"$L4T" 2>&1; then
clihelp::success "netcat $1 $2"
else
clihelp::failure "netcat $1 $2"
Expand Down

0 comments on commit 4d0be82

Please sign in to comment.