Skip to content

Commit

Permalink
Add pre-commit check for terraform-config-inspect (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
GabeL7r authored Oct 27, 2020
1 parent be48ae7 commit 9c5d8ed
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions terraform_readme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ set -e
declare -a paths
declare -a tfvars_files

if [[ $(terraform-config-inspect --version) != "0.2.0" ]]; then
echo "Please install the latest version of terraform-config-inspect, by running:"
echo "go get -u github.com/HeadspaceMeditation/terraform-config-inspect"
echo "For further help reach out to the ops team."
exit 1
fi

index=0

for file_with_path in "$@"; do
Expand Down

0 comments on commit 9c5d8ed

Please sign in to comment.