fix: hartcodierte Repo-Pfade durch portable Alternativen ersetzen

bootstrap.sh ermittelt REPO dynamisch, settings.json referenziert Hooks
über ~/.claude/hooks (Symlink), auto-format.sh löst die Markdownlint-Config
relativ zum Script-Standort auf. Doku-Beispiele nutzen Platzhalter.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-11 19:19:01 +02:00
co-authored by Claude Opus 4.6
parent 62c094361f
commit 09860e32b0
5 changed files with 16 additions and 14 deletions
+3 -2
View File
@@ -4,7 +4,8 @@
set -euo pipefail
# Dateiname aus Umgebungsvariable (Claude Code setzt CLAUDE_TOOL_INPUT_FILE_PATH)
REPO_ROOT="$(dirname "$(cd "$(dirname "$(readlink -f "$0")")" && pwd)")"
FILE="${CLAUDE_TOOL_INPUT_FILE_PATH:-}"
if [[ -z "$FILE" || ! -f "$FILE" ]]; then
@@ -39,7 +40,7 @@ case "$EXT" in
# Zweiter Pass: räumt die nun verwaisten Mehrfach-Leerzeilen auf (MD012).
for _ in 1 2; do
markdownlint-cli2 \
--config /mnt/projekte/claude-workflow/.markdownlint-cli2.jsonc \
--config "$REPO_ROOT/.markdownlint-cli2.jsonc" \
--fix "$FILE" >/dev/null 2>&1 || true
done
fi