We can exclude the .terraform directory
- ID
586f48a- date
2024-02-08 13:09:21+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
994cba0- message
We can exclude the .terraform directory- changed files
1 file, 7 additions
Changed files
terraform/tfi (106) → terraform/tfi (262)
diff --git a/terraform/tfi b/terraform/tfi
index 0b83005..3423d60 100755
--- a/terraform/tfi
+++ b/terraform/tfi
@@ -5,3 +5,10 @@ set -o errexit
set -o nounset
tf init "$@"
+
+# Tell Time Machine that it doesn't need to both backing up the
+# .terraform directory.
+if [[ -d ".terraform" ]]
+then
+ tmutil addexclusion .terraform
+end