Last active
May 10, 2017 20:42
-
-
Save philmtd/152f20d8af69885bbb51024ad88ce28f to your computer and use it in GitHub Desktop.
Git hook to replace a "wtc" commit message with a random whatthecommit.com message.
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/bash | |
comm_msg="$(cat $1)" | |
if [ "$comm_msg" = "wtc" ]; then | |
curl -L whatthecommit.com/index.txt > $1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment