diff --git a/hooks/terraform-fmt.sh b/hooks/terraform-fmt.sh index 565f201c..934ff2d4 100755 --- a/hooks/terraform-fmt.sh +++ b/hooks/terraform-fmt.sh @@ -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 diff --git a/memfault-patch.sh b/memfault-patch.sh new file mode 100755 index 00000000..57bcdb0f --- /dev/null +++ b/memfault-patch.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +sed -i -e 's/terraform fmt -diff -check/terraform fmt/' hooks/terraform-fmt.sh