Last active
April 18, 2018 03:17
-
-
Save rbwestmoreland/435bf8b03c8e28d68365d677d09acfdf to your computer and use it in GitHub Desktop.
git hooks solution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --local core.hooksPath ./tools/githooks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
git config --local core.hooksPath ./tools/githooks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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