Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hooks/terraform-fmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,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

# reset path to the original value
Expand Down
3 changes: 3 additions & 0 deletions memfault-patch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

sed -i -e 's/terraform fmt -diff -check/terraform fmt/' hooks/terraform-fmt.sh