Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
test(cli): guard shell-variant installer drift
jkomyno25c2ab125d58
diff --git a/test/install-sh-release-resolution.test.sh b/test/install-sh-release-resolution.test.shindex 93dbb7c5e..38e79271b 100755--- a/test/install-sh-release-resolution.test.sh+++ b/test/install-sh-release-resolution.test.sh@@ -34,6 +34,19 @@ for script in "$repo_root/install.sh" "$repo_root"/install/*.sh; dofidone+# The shell variants are served as standalone scripts, so their shared logic+# (including the URL-validation security checks) is intentionally copied.+# Enforce that they stay byte-identical except for the shell each hardcodes in+# requested_shell(), so a fix applied to one cannot silently miss the others.+for variant in bash zsh fish; do+ variant_script="$repo_root/install/$variant.sh"+ grep -Fqx "requested_shell() { printf '%s\\n' $variant; }" "$variant_script" ||+ fail "install/$variant.sh must hardcode requested_shell() for $variant"+ diff <(grep -Fv 'requested_shell()' "$repo_root/install/bash.sh") \+ <(grep -Fv 'requested_shell()' "$variant_script") >/dev/null ||+ fail "install/$variant.sh drifted from install/bash.sh outside requested_shell()"+done+windows_bin="$suite_tmp/windows-bin"windows_home="$suite_tmp/windows-home"mkdir -p "$windows_bin" "$windows_home"