mirror of
https://github.com/taigrr/hooks.git
synced 2026-04-02 03:18:55 -07:00
ci: add shellcheck workflow, install/uninstall scripts
This commit is contained in:
17
uninstall.sh
Executable file
17
uninstall.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
# Remove global git hooks configuration set by install.sh.
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
if git config --global --get core.hooksPath > /dev/null 2>&1; then
|
||||
git config --global --unset core.hooksPath
|
||||
echo "Removed core.hooksPath"
|
||||
elif git config --global --get init.templateDir > /dev/null 2>&1; then
|
||||
git config --global --unset init.templateDir
|
||||
echo "Removed init.templateDir"
|
||||
else
|
||||
echo "No global hooks configuration found."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "Global hooks configuration cleared."
|
||||
Reference in New Issue
Block a user