Skip to content

Instantly share code, notes, and snippets.

@rbwestmoreland
Last active April 18, 2018 03:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rbwestmoreland/435bf8b03c8e28d68365d677d09acfdf to your computer and use it in GitHub Desktop.
Save rbwestmoreland/435bf8b03c8e28d68365d677d09acfdf to your computer and use it in GitHub Desktop.
git hooks solution
git config --local core.hooksPath ./tools/githooks
#!/bin/sh
git config --local core.hooksPath ./tools/githooks
#!/bin/sh
terraform fmt -check=true -list=false && echo "[pass] terraform fmt" || echo "[fail] terraform fmt"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment