TIL: timeout in Bash scripts

  • timeout 1m ./until.sh
  • wrap
timeout 1m bash -c "until curl --silent --fail-with-body 10.0.0.1:8080/health; do
	sleep 1
done"