Use -W instead of -w for ping in deploy.sh

Use the waittime argument instead of deadline, since the latter is not supported on macOS.
This commit is contained in:
2017-03-17 12:02:05 +01:00
parent 28f9ec5ffa
commit 4c149b0d24

View File

@@ -11,7 +11,7 @@ esac
echo -n "Deploying to ${DEPLOYHOST}... "
if ! ping ${DEPLOYHOST} -q -c 1 -w 2 >/dev/null; then
if ! ping ${DEPLOYHOST} -q -c 1 -W 2 >/dev/null; then
echo "host ${DEPLOYHOST} cannot be pinged, refusing to deploy." >&2
exit 2
fi