Great Stack to Doesn't Work — Bonus

10 Bash Scripting Golden Rules

Because your deployment script is production code whether you admit it or not.

1. Start every script with set -euo pipefail.

#!/usr/bin/env bash