mirror of
https://github.com/MaksTinyWorkshop/_Assistant_Lead_Tech
synced 2026-04-06 21:41:42 +02:00
MAJ
This commit is contained in:
5
scripts/sync-ai-instructions.sh
Normal file → Executable file
5
scripts/sync-ai-instructions.sh
Normal file → Executable 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
|
||||
|
||||
Reference in New Issue
Block a user