chore(scripts): make pre_commit_fable_mcp.sh location-independent

Derive REPO_ROOT from the script's own location instead of hardcoding
the absolute project path, so the hook keeps working if the project
directory is renamed or moved.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-04-25 17:56:02 -04:00
parent e652dece9b
commit b20d6dec66
+1 -1
View File
@@ -8,7 +8,7 @@
set -euo pipefail set -euo pipefail
REPO_ROOT="/home/bvandeusen/Nextcloud/Projects/fabledassistant" REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
input=$(cat) input=$(cat)
command=$(echo "$input" | python3 -c " command=$(echo "$input" | python3 -c "