Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /usr/bin/env bash
- set -e
- shopt -s extglob
- HOOKDIR="$(git rev-parse --git-dir)/hooks"
- if [ -d "$HOOKDIR" ]; then
- rm -rf "${HOOKDIR:?}"/!(*.sample)
- echo "all hooks removed from $HOOKDIR"
- else
- echo "no git hooks folder found, you probably aren't in a git repo"
- exit 1
- fi
Add Comment
Please, Sign In to add comment