Skip to content

Instantly share code, notes, and snippets.

@sandfox
Last active February 11, 2018 15:51
Show Gist options
  • Save sandfox/efcfb425aed2eaa3c879e71b5b9f6818 to your computer and use it in GitHub Desktop.
Save sandfox/efcfb425aed2eaa3c879e71b5b9f6818 to your computer and use it in GitHub Desktop.
delete husky git hooks
#! /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