Skip to content

Commit

Permalink
removed debug exit
Browse files Browse the repository at this point in the history
  • Loading branch information
jullrich committed Oct 19, 2023
1 parent 229f1a2 commit 12add55
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1155,15 +1155,13 @@ else
ssexists=0
fi

if [ ${ssexists} -eq 0 && $[netstatexists} -eq 0 ]; then
if [ ${ssexists} -eq 0 ] && [ ${netstatexists} -eq 0 ]; then
dlog "Neither netstat nor ss exists. Need at least one of them."
exit 5
fi

echo $ssexists $netstatexists
# TODO: using ss instead of netstat if necessary

exit

drun "netstat -an | grep ':${CURSSHDPORT}' | grep ESTABLISHED | awk '{print \$5}' | cut -d ':' -f 1 | sort -u | tr '\n' ' ' | sed 's/ $//'"
CONIPS=$(netstat -an | grep ":${CURSSHDPORT}" | grep ESTABLISHED | awk '{print $5}' | cut -d ':' -f 1 | sort -u | tr '\n' ' ' | sed 's/ $//')

Expand Down

0 comments on commit 12add55

Please sign in to comment.