Created
April 25, 2018 07:10
-
-
Save jechol/caa97b71cf894c3b072cf6dcd7754bba to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
cd `git rev-parse --show-toplevel` | |
mix format --check-formatted | |
if [ $? == 1 ]; then | |
echo "[ERROR!!!] Commit failed because you have format issues..." | |
echo "[SO WHAT?] Please run mix format and git add/commit again dude. ^^" | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment