From cded7b4a1cddb74e648d1e50e3ca19c5771bcd64 Mon Sep 17 00:00:00 2001 From: MaksTinyWorkshop Date: Sun, 8 Mar 2026 11:21:11 +0100 Subject: [PATCH] FallBack projet absent sur une machine ou l'autre --- _projects.conf | 3 ++- sync-ai-instructions.sh | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/_projects.conf b/_projects.conf index de11622..f943738 100644 --- a/_projects.conf +++ b/_projects.conf @@ -1,5 +1,6 @@ # Configuration des projets actifs # Format : nom|stack|path_nuc|path_mac|etat -# Ajouter une ligne par projet +# Laisser path_nuc ou path_mac vide si le projet n'existe pas sur cette machine +# Exemple NUC seulement : mon-projet|Stack|/srv/projects/mon-projet||En cours app-alexandrie|NestJS + Expo (React Native) + Prisma + pnpm monorepo|/srv/projects/app-alexandrie|/Volumes/TeraSSD/Projets_Dev/__Mindleaf/app-alexandrie|Epic 2 en préparation diff --git a/sync-ai-instructions.sh b/sync-ai-instructions.sh index 39c8be8..f09b90b 100755 --- a/sync-ai-instructions.sh +++ b/sync-ai-instructions.sh @@ -25,7 +25,11 @@ build_projects_table() { else path="$path_nuc" fi - echo "| $nom | $stack | \`$path\` | $etat |" + if [ -z "$path" ]; then + echo "| $nom | $stack | *non disponible sur cette machine* | $etat |" + else + echo "| $nom | $stack | \`$path\` | $etat |" + fi done < "$PROJECTS_CONF" }