From b20d6dec66c76468bb1a71092036536d81c9e09e Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Sat, 25 Apr 2026 17:56:02 -0400 Subject: [PATCH] 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 --- scripts/pre_commit_fable_mcp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pre_commit_fable_mcp.sh b/scripts/pre_commit_fable_mcp.sh index 966b90e..8dbd54c 100755 --- a/scripts/pre_commit_fable_mcp.sh +++ b/scripts/pre_commit_fable_mcp.sh @@ -8,7 +8,7 @@ set -euo pipefail -REPO_ROOT="/home/bvandeusen/Nextcloud/Projects/fabledassistant" +REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" input=$(cat) command=$(echo "$input" | python3 -c "