Merge pull request #29 from ivanilves/fix/macos-ps

Fixed 🤦 bug
This commit is contained in:
Ivan Ilves 2017-04-24 22:30:54 +02:00 committed by GitHub
commit 93be59b5c1

View File

@ -182,7 +182,7 @@ fi
set +e
FAILED_PINGS=0
while [[ ${FAILED_PINGS} -lt ${MAX_FAILED_PINGS} ]]; do
kill -0 ${SSH_PID} &>/dev/null || break
[[ $(ps -p ${SSH_PID} | wc -l) -eq 2 ]] || break
./scripts/client-ping-server.sh ${TUNNEL_ID} ${IP_BASE}
if [[ ${?} -ne 0 ]]; then