Until in Bash

Bash has an until loop:

until [CONDITION]
do
  [COMMANDS]
done

Used this in a Makefile to wait for Postgres to start up:

test:
	docker-compose up -V -d postgres
	until pg_isready -h localhost; do \
		sleep 0.1; \
	done
	go test ./...

Also ended up writing a blog post about this.