From 4dde0a9d8b90157e481bb334fef383440251e5cd Mon Sep 17 00:00:00 2001 From: Gilles Soulier Date: Sat, 16 May 2026 05:51:57 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20select=5Fagents=20=E2=80=94=20printf=20'?= =?UTF-8?q?%s\n'=20=C3=A9vite=20l'interpr=C3=A9tation=20des=20codes=20ANSI?= =?UTF-8?q?=20comme=20format?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 37a3cec..eb302b1 100755 --- a/install.sh +++ b/install.sh @@ -170,19 +170,19 @@ detect_agents() { select_agents() { header "Pour quel(s) agent(s) installer ?" - local agent_input="" + local -a agent_lines=() for agent in "claude-code" "gemini-cli" "codex" "hermes"; do local detected=0 for a in "${DETECTED_AGENTS[@]}"; do [[ "$a" == "$agent" ]] && detected=1; done if [[ $detected -eq 1 ]]; then - agent_input+="${agent}\t${GRV_GREEN}✓ détecté ${RESET}${GRV_FG}${agent}${RESET}\n" + agent_lines+=("${agent}"$'\t'"${GRV_GREEN}✓ détecté ${RESET}${GRV_FG}${agent}${RESET}") else - agent_input+="${agent}\t${GRV_GRAY}○ non installé ${agent}${RESET}\n" + agent_lines+=("${agent}"$'\t'"${GRV_GRAY}○ non installé ${agent}${RESET}") fi done local raw_selected - raw_selected=$(printf "$agent_input" | fzf \ + raw_selected=$(printf '%s\n' "${agent_lines[@]}" | fzf \ --multi \ --ansi \ --delimiter='\t' \