FallBack projet absent sur une machine ou l'autre

This commit is contained in:
MaksTinyWorkshop
2026-03-08 11:21:11 +01:00
parent e1910740d9
commit cded7b4a1c
2 changed files with 7 additions and 2 deletions

View File

@@ -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

View File

@@ -25,7 +25,11 @@ build_projects_table() {
else
path="$path_nuc"
fi
if [ -z "$path" ]; then
echo "| $nom | $stack | *non disponible sur cette machine* | $etat |"
else
echo "| $nom | $stack | \`$path\` | $etat |"
fi
done < "$PROJECTS_CONF"
}