Skip to content

A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy injectors to reality checkers. Each agent is a specialized expert with personality, processes, and proven deliverables.

Shell

fix(installer): deduplicate repeated tool selections (#777)

hari9572c66428bb
diff --git a/scripts/install.sh b/scripts/install.sh
index a3c13dc6..dfb0d43a 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -1247,7 +1247,15 @@ main() {
local valid=false _vt
for _vt in "${ALL_TOOLS[@]}"; do [[ "$_vt" == "$_t" ]] && valid=true && break; done
$valid || { err "Unknown tool '$_t'. Valid: ${ALL_TOOLS[*]}"; exit 1; }
- _cleaned+=("$_t")
+ # A repeated --tool value would otherwise launch duplicate workers in
+ # --parallel mode and make the reported install count misleading.
+ local duplicate=false _selected
+ if [[ ${#_cleaned[@]} -gt 0 ]]; then
+ for _selected in "${_cleaned[@]}"; do
+ [[ "$_selected" == "$_t" ]] && { duplicate=true; break; }
+ done
+ fi
+ $duplicate || _cleaned+=("$_t")
done
_tool_list=("${_cleaned[@]}")
fi