Created
May 31, 2017 09:37
-
-
Save aherve/db00720e990e8ff7bd4912f235648c3b to your computer and use it in GitHub Desktop.
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/bash | |
# Lunatic pre-commit hook | |
echo 'pre-commit hook starting' | |
FLIP=$(($(($RANDOM%10))%2)) | |
if [ $FLIP -eq 1 ] | |
then | |
echo 'Okay, I will accept your commit' | |
exit 0 | |
else | |
echo 'Meh. Maybe another time' | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment