ci: add shellcheck workflow, install/uninstall scripts

This commit is contained in:
2026-03-23 06:31:29 +00:00
parent 55b3d81610
commit 592d1db7d4
4 changed files with 76 additions and 21 deletions

17
uninstall.sh Executable file
View 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."