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
fix(installer): satisfy shellcheck in install.sh and the shell variants
jkomynob11f31cec8ef
diff --git a/install.sh b/install.shindex cbcf81466..c63287bed 100755--- a/install.sh+++ b/install.sh@@ -532,7 +532,9 @@ main() {error "Failed to determine the latest CLI release with a $archive_name asset. Specify a version manually."version=$(printf '%s\n' "$latest_release" | sed -n '1p')archive_url=$(printf '%s\n' "$latest_release" | sed -n '2p')- [ -n "$version" ] && [ -n "$archive_url" ] || error 'The release API returned an incomplete CLI release'+ if [ -z "$version" ] || [ -z "$archive_url" ]; then+ error 'The release API returned an incomplete CLI release'+ fiinfo "Found latest version: $version"fivalidate_url "$archive_url" || error "Release API returned an unsafe archive URL \"$archive_url\""diff --git a/install/bash.sh b/install/bash.shindex 8bd014470..afe460788 100755--- a/install/bash.sh+++ b/install/bash.sh@@ -8,7 +8,7 @@ error() {exit 1}is_true() { case ${1:-} in 1 | true) return 0 ;; *) return 1 ;; esac }-debug() { is_true "${COMPOSIO_DEBUG:-}" && printf '+ %s\n' "$*" >&2 || :; }+debug() { if is_true "${COMPOSIO_DEBUG:-}"; then printf '+ %s\n' "$*" >&2; fi; }url_authority() {printf '%s\n' "$1" | sed -e 's#^[a-zA-Z][a-zA-Z0-9+.-]*://##' -e 's#[/?#].*$##'diff --git a/install/fish.sh b/install/fish.shindex c1d5f26f7..5d8d1cf33 100755--- a/install/fish.sh+++ b/install/fish.sh@@ -8,7 +8,7 @@ error() {exit 1}is_true() { case ${1:-} in 1 | true) return 0 ;; *) return 1 ;; esac }-debug() { is_true "${COMPOSIO_DEBUG:-}" && printf '+ %s\n' "$*" >&2 || :; }+debug() { if is_true "${COMPOSIO_DEBUG:-}"; then printf '+ %s\n' "$*" >&2; fi; }url_authority() {printf '%s\n' "$1" | sed -e 's#^[a-zA-Z][a-zA-Z0-9+.-]*://##' -e 's#[/?#].*$##'diff --git a/install/zsh.sh b/install/zsh.shindex 4ad28f709..79c9f1611 100755--- a/install/zsh.sh+++ b/install/zsh.sh@@ -8,7 +8,7 @@ error() {exit 1}is_true() { case ${1:-} in 1 | true) return 0 ;; *) return 1 ;; esac }-debug() { is_true "${COMPOSIO_DEBUG:-}" && printf '+ %s\n' "$*" >&2 || :; }+debug() { if is_true "${COMPOSIO_DEBUG:-}"; then printf '+ %s\n' "$*" >&2; fi; }url_authority() {printf '%s\n' "$1" | sed -e 's#^[a-zA-Z][a-zA-Z0-9+.-]*://##' -e 's#[/?#].*$##'