Skip to content

Commit

Permalink
Check for presence of nc before testing for version.
Browse files Browse the repository at this point in the history
  • Loading branch information
xwmx committed Jan 22, 2024
1 parent 98718a5 commit 238e464
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nb
Original file line number Diff line number Diff line change
Expand Up @@ -9855,7 +9855,7 @@ __set_browse_server_tool() {
if _command_exists "ncat" && _command_exists "env"
then # ncat is present and system is POSIX
NB_BROWSE_SERVER_TOOL="ncat"
elif nc --help &/dev/null
elif _command_exists "nc" && nc --help &/dev/null
then # GNU nc / netcat is present
NB_BROWSE_SERVER_TOOL="nc"
elif [[ "${BASH_VERSINFO[0]}" -ge 5 ]] &&
Expand Down

0 comments on commit 238e464

Please sign in to comment.