diff options
author | EuAndreh <eu@euandre.org> | 2020-10-23 08:41:58 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2020-10-23 08:42:35 -0300 |
commit | 137a5e4a1631d69f6844c8dab0b5d629db01c11c (patch) | |
tree | 27804edbb12769e62f729c6305de6fc583f1ecc6 /scripts/assert-terraform.sh | |
parent | Remove utils.nix (diff) | |
download | toph-137a5e4a1631d69f6844c8dab0b5d629db01c11c.tar.gz toph-137a5e4a1631d69f6844c8dab0b5d629db01c11c.tar.xz |
Add bash scripts for tests instead of Nix
Diffstat (limited to 'scripts/assert-terraform.sh')
-rwxr-xr-x | scripts/assert-terraform.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/assert-terraform.sh b/scripts/assert-terraform.sh new file mode 100755 index 0000000..8f03d7f --- /dev/null +++ b/scripts/assert-terraform.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +set -Eeuo pipefail +cd "$(dirname "${BASH_SOURCE[0]}")" +cd ../ + +terraform fmt -check=true -diff=true || { + echo "Terraform files are unformatted. To fix it, run:" + echo " terraform fmt" + exit 1 +} |