Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 21, 17:15 UTC
test(cli): guard shell-variant installer drift
jkomyno committed
Aug 1, 2026 at 17:45 UTC
25c2ab125d58e4be9092cacdab063fbceef25262
1 file changed
+13
test/install-sh-release-resolution.test.sh
+13
@@ -34,6 +34,19 @@ for script in "$repo_root/install.sh" "$repo_root"/install/*.sh; do
34
fi
35
done
36
37
+# The shell variants are served as standalone scripts, so their shared logic
38
+# (including the URL-validation security checks) is intentionally copied.
39
+# Enforce that they stay byte-identical except for the shell each hardcodes in
40
+# requested_shell(), so a fix applied to one cannot silently miss the others.
41
+for variant in bash zsh fish; do
42
+ variant_script="$repo_root/install/$variant.sh"
43
+ grep -Fqx "requested_shell() { printf '%s\\n' $variant; }" "$variant_script" ||
44
+ fail "install/$variant.sh must hardcode requested_shell() for $variant"
45
+ diff <(grep -Fv 'requested_shell()' "$repo_root/install/bash.sh") \
46
+ <(grep -Fv 'requested_shell()' "$variant_script") >/dev/null ||
47
+ fail "install/$variant.sh drifted from install/bash.sh outside requested_shell()"
48
+done
49
+
50
windows_bin="$suite_tmp/windows-bin"
51
windows_home="$suite_tmp/windows-home"
52
mkdir -p "$windows_bin" "$windows_home"