Skip to content

Instantly share code, notes, and snippets.

@Viroide
Last active October 10, 2017 10:04
Show Gist options
  • Save Viroide/a75be1b32c7ae2afe45a2bc77b3b68cf to your computer and use it in GitHub Desktop.
Save Viroide/a75be1b32c7ae2afe45a2bc77b3b68cf to your computer and use it in GitHub Desktop.
#!/bin/sh
if [[ $(ag '\.only|debugger') ]]; then
echo 'Ups, you should remove your 💩 !'
ag '\.only|debugger'
exit 1
else
echo 'no 💩 , here is your 🎖'
exit 0
fi
@Viroide
Copy link
Author

Viroide commented Oct 10, 2017

To use this hook you must have installed Silver searcher

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment