Skip to content

Commit

Permalink
Update terraform-fmt.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
eliwilliams authored Sep 17, 2021
1 parent e9250bd commit ad25906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/terraform-fmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export PATH=$PATH:/usr/local/bin
FMT_ERROR=0

for file in "$@"; do
terraform fmt -diff -check "$file" || FMT_ERROR=$?
terraform fmt "$file" || FMT_ERROR=$?
done

exit ${FMT_ERROR}

0 comments on commit ad25906

Please sign in to comment.