Last active
February 11, 2018 15:51
-
-
Save sandfox/efcfb425aed2eaa3c879e71b5b9f6818 to your computer and use it in GitHub Desktop.
delete husky git hooks
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
#! /usr/bin/env sh | |
set -e | |
HOOKDIR="$(git rev-parse --git-dir)/hooks" | |
if [ -d "$HOOKDIR" ]; then | |
grep -r -l "#husky 0.14.3" "$HOOKDIR" | xargs -0 rm -f -- | |
echo "husky hooks removed from $HOOKDIR" | |
else | |
echo "no git hooks folder found, you probably aren't in a git repo" | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment