@devries-cameron20 / composio Mirror · read-only / commits / 197880413
Fork 0

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 22, 23:15 UTC

maybe fix pathing

Rahul Tarak committed Jun 26, 2025 at 03:23 UTC 197880413137daeb7e626330def4f1c3db4616b5
2 files changed +24 -8
.github/workflows/test-installation.yml
+2 -2
@@ -233,7 +233,7 @@ jobs:
233 exit 1
234 fi
235
236 - if grep -q "composio/bin" ~/.zshrc; then
236 + if grep -q "COMPOSIO_INSTALL/bin" ~/.zshrc; then
237 echo "✅ .zshrc updated with PATH"
238 else
239 echo "❌ .zshrc PATH not updated"
@@ -247,7 +247,7 @@ jobs:
247 exit 1
248 fi
249
250 - if grep -q "composio/bin" ~/.bashrc; then
250 + if grep -q "COMPOSIO_INSTALL/bin" ~/.bashrc; then
251 echo "✅ .bashrc updated with PATH"
252 else
253 echo "❌ .bashrc PATH not updated"
install.sh
+22 -6
@@ -279,12 +279,28 @@ bash)
279
280 # Check if file is writable OR if parent directory is writable (so we can create the file)
281 if [[ -w "$bash_config" ]] || [[ ! -e "$bash_config" && -w "$(dirname "$bash_config")" ]]; then
282 - {
283 - echo -e '\n# Composio CLI'
284 - for command in "${commands[@]}"; do
285 - echo "$command"
286 - done
287 - } >>"$bash_config"
282 + # For .bashrc, prepend the exports before any interactive checks
283 + if [[ "$bash_config" == *".bashrc" ]] && [[ -f "$bash_config" ]] && grep -q "case.*-.*in" "$bash_config"; then
284 + # Create a temporary file with our exports at the top
285 + temp_file=$(mktemp)
286 + {
287 + echo '# Composio CLI'
288 + for command in "${commands[@]}"; do
289 + echo "$command"
290 + done
291 + echo
292 + cat "$bash_config"
293 + } > "$temp_file"
294 + mv "$temp_file" "$bash_config"
295 + else
296 + # For other configs or if no interactive check found, append as before
297 + {
298 + echo -e '\n# Composio CLI'
299 + for command in "${commands[@]}"; do
300 + echo "$command"
301 + done
302 + } >>"$bash_config"
303 + fi
304
305 info "Added \"$tilde_bin_dir\" to \$PATH in \"$tilde_bash_config\""
306 refresh_command="source $bash_config"