Skip to content

Commit e309b4f

Browse files
authored
Merge pull request #20 from gruntwork-io/yori-fix-tffmt-bug
Fix terraform fmt hook where it is now running on all files regardless of exclude
2 parents 911f8e2 + 73068c8 commit e309b4f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hooks/terraform-fmt.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ set -e
77
# workaround to allow GitHub Desktop to work, add this (hopefully harmless) setting here.
88
export PATH=$PATH:/usr/local/bin
99

10-
terraform fmt -recursive
10+
for file in "$@"; do
11+
terraform fmt -write=true "$file"
12+
done

0 commit comments

Comments
 (0)