Skip to content

Commit 632dfd9

Browse files
committed
fix(upgrade): multi-version tools always prompt for confirmation
Multi-version runtime installs (python@3.13, php@8.3, etc.) now always prompt for user confirmation, even if the base tool has auto_update enabled. This is intentional - installing/upgrading specific runtime versions is a more significant operation that deserves explicit user confirmation.
1 parent 2a78879 commit 632dfd9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/guide.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ process_tool() {
191191
fi
192192

193193
# Check if auto_update is enabled - install without prompting
194-
if [ "$auto_update" = "true" ]; then
194+
# BUT: multi-version tools always prompt (more significant operation)
195+
if [ "$auto_update" = "true" ] && [ -z "$is_multi_version" ]; then
195196
printf "\n==> %s %s [auto-update]\n" "$icon" "$display"
196197
printf " installed: %s via %s\n" "${installed:-<none>}" "${method:-unknown}"
197198
printf " target: %s\n" "$(osc8 "$url" "${latest:-<unknown>}")"

0 commit comments

Comments
 (0)