This commit is contained in:
MaksTinyWorkshop
2026-03-26 13:36:51 +01:00
parent 9b7af9f1b0
commit 808e9d5536
9 changed files with 118 additions and 49 deletions

5
scripts/sync-ai-instructions.sh Normal file → Executable file
View File

@@ -46,9 +46,10 @@ ensure_symlink() {
if [ -L "$link_path" ]; then
local current_target
current_target="$(readlink "$link_path")"
if [ "$current_target" = "$target" ]; then
if [ "$current_target" = "$target" ] && [ -e "$link_path" ]; then
return 0
fi
rm -f "$link_path"
elif [ -e "$link_path" ]; then
rm -f "$link_path"
fi
@@ -71,4 +72,4 @@ ensure_symlink "$REPO_ROOT/CLAUDE.md" "$REPO_ROOT/AGENTS.md"
if [ "$CHANGED" -eq 1 ]; then
echo "Sync AI instructions (OS: $OS)"
echo "Sync terminée."
fi
fi