Skip to content

Commit f04c503

Browse files
AI Assistantclaude
andcommitted
fix(install): pass action arguments through installer chain
Fixed argument passing in install_tool.sh and dedicated_script.sh: - install_tool.sh now passes all arguments after TOOL_NAME to the installer - dedicated_script.sh removes TOOL argument before passing to dedicated script - Dedicated scripts (install_uv.sh, install_rust.sh, etc.) expect ACTION as $1 This fixes guide.sh calling "install_tool.sh uv reconcile" which was previously failing with "Usage: install_uv.sh {install|update|uninstall|reconcile}" Argument flow: guide.sh → install_tool.sh uv reconcile → dedicated_script.sh uv reconcile → install_uv.sh reconcile ✓ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 48e110d commit f04c503

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

scripts/install_tool.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ if [ ! -x "$INSTALLER_SCRIPT" ]; then
4848
exit 1
4949
fi
5050

51-
# Execute installer
52-
exec "$INSTALLER_SCRIPT" "$TOOL"
51+
# Execute installer with all remaining arguments
52+
shift # Remove TOOL from $@
53+
exec "$INSTALLER_SCRIPT" "$TOOL" "$@"

scripts/installers/dedicated_script.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,6 @@ if [ ! -x "$SCRIPT_PATH" ]; then
4343
exit 1
4444
fi
4545

46-
# Delegate to dedicated script
46+
# Delegate to dedicated script (skip TOOL argument, pass only ACTION)
47+
shift # Remove TOOL from $@
4748
exec "$SCRIPT_PATH" "$@"

0 commit comments

Comments
 (0)