add debug

This commit is contained in:
Jakobus Schürz 2020-09-11 08:58:52 +02:00
parent b811d7b41a
commit 33662fa36b

View file

@ -592,6 +592,9 @@ reachable-default () {
local SERVER=$1
local PORT=${2:-22}
local res=1
if $MYSHELLCONFIG_DEBUG; then
echo SERVER:PORT "${SERVER}:${PORT}"
fi
if nc -z $SERVER $PORT 2>/dev/null; then
echo "${SERVER}:${PORT} is reachable" >&2
res=0