fix(chezmoi): Address review comments

- update: rename APT to COMMAND_APT
- mise bootstrap is generic (not only apt): fix comments and warning

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
xavierandClaude Opus 5.5 committed 2026-11-11 22:15:40 +01:00
1 parent e7d9189de4
commit 05b9748a48
3 files changed
+15 -13

No files matched your search

+3 -2
View File
@@ -16,13 +16,14 @@ if ! command -v mise &>/dev/null; then
export PATH="${HOME}/.local/bin:$PATH"
fi
# 2. Lancer le bootstrap (paquets système : droits sudo requis)
# 2. Lancer le bootstrap : il peut exiger sudo (paquets système, etc.) ; faute
# de pouvoir n'en exécuter qu'une partie, il est ignoré sans droits sudo
if command -v mise &>/dev/null; then
if can_sudo; then
echo "🚀 Mise bootstrap..."
mise bootstrap --yes
else
echo "⚠️ Pas de droits sudo : mise bootstrap ignoré (paquets système non installés)."
echo "⚠️ Pas de droits sudo : mise bootstrap ignoré."
fi
fi