Waiting X seconds for command to succeed or terminate it otherwise.
Install timeout.sh
script.
TIMEOUT=/usr/local/bin/timeout && curl -o $TIMEOUT https://raw.githubusercontent.com/streamich/awesome-ci-recipes/master/docs/timeout/timeout.sh && chmod +x $TIMEOUT && unset TIMEOUT
Wait 10m for your service to deploy or fail otherwise.
timeout -t $((10 * 60)) <command>