Fix usage of /dev/null and ping flag in run.sh (#968)

- Use /dev/null instead of nul
- Use -c instead of -n as a ping flag to specify number of packets to be
  sent
This commit is contained in:
Santiago Roman
2021-02-05 01:09:27 -03:00
committed by TingluoHuang
parent 1ef8ea7a83
commit 01be856eff

View File

@@ -34,14 +34,14 @@ else
if [ ! -x "$(command -v ping)" ]; then
COUNT="0"
while [[ $COUNT != 5000 ]]; do
echo "SLEEP" >nul
echo "SLEEP" > /dev/null
COUNT=$[$COUNT+1]
done
else
ping -n 5 127.0.0.1 >nul
ping -c 5 127.0.0.1 > /dev/null
fi
else
sleep 5 >nul
sleep 5
fi
else
exit $returnCode