Skip to content

Instantly share code, notes, and snippets.

@WoodProgrammer
Created May 21, 2017 13:21
Show Gist options
  • Save WoodProgrammer/430bc78cfed8a1c87650846da9a02e5e to your computer and use it in GitHub Desktop.
Save WoodProgrammer/430bc78cfed8a1c87650846da9a02e5e to your computer and use it in GitHub Desktop.
GitHooks Simple - Testing Examples
///pre-commit
x=$(curl localhost:8080 | awk '{print$1}')
if [ "$x" = "MAIN_KEY" ]; then
echo "----- PASSED ---- $date"
else
exit 1
fi;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment