Last active
August 29, 2015 14:01
-
-
Save davidnormo/d03f42a24861b3f991fc to your computer and use it in GitHub Desktop.
A pre-commit hook to remember to pray over your work
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 | |
#accept stdin input | |
exec < /dev/tty | |
#prompt user | |
read -p "Have you prayed? " -n 1 -r | |
#complete on new line | |
echo | |
#if yes then proceed, else fail | |
if [[ ! $REPLY =~ ^[Yy]$ ]] | |
then | |
exit 1 | |
fi | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Copy contents of this gist into the newly created file, then: