1 2 3 4 5 6 7
#!/bin/sh -eux terraform fmt -check=true -diff=true || { echo "Terraform files are unformatted. To fix it, run:" echo " terraform fmt" exit 1 }