You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Naming a Tool Other Than the Last Makes install-tools.sh Exit 1 Silently #2256
host-setup/linux/install-tools.sh exits 1 with no output at all whenever the tools it is given leave out the last tool in its managed list. install-tools.sh uv jq and install-tools.sh --upgrade node jq (the second is one of the script's own --help examples) both stop silently before reading the host, on develop as it stands.
Why
resolve_selection ends with a nested loop whose last statement is a bare [[ $tool == "$requested" ]] && SELECTED+=("$tool"). On the final iteration, where the last managed tool was not requested, that test is false, so the function returns 1 and main stops under set -e. Naming the last tool, or naming no tool, passes, which is why a run with no arguments never shows it.
Reproduce
host-setup/linux/install-tools.sh git;echo"exit=$?"# prints nothing, exit=1
host-setup/linux/install-tools.sh;echo"exit=$?"# the full report, exit=0
Fix Shape
End the function with an explicit return 0, or use an if in the loop, and add a test that names a tool other than the last one.
Activity
Give install-tools a JSON Report Mode a Program Can Read (#2259)
Return Zero From install-tools.sh Tool Selection and Hide the Home Di…
Promote develop to main: Table Carry, Quota Safety, Defined-Moments R…