@devries-cameron20 / composio Mirror · read-only / commits / 1e74a218a
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

fix install

Rahul Tarak committed Jun 26, 2025 at 03:01 UTC 1e74a218a578f8f14be859185342a5d3a6af738f
1 file changed +13 -1
install.sh
+13 -1
@@ -199,6 +199,12 @@ fish)
199 fish_config=$HOME/.config/fish/config.fish
200 tilde_fish_config=$(tildify "$fish_config")
201
202 + # Create fish config directory and file if they don't exist
203 + if [[ ! -f $fish_config && -w $(dirname "$(dirname "$fish_config")") ]]; then
204 + mkdir -p "$(dirname "$fish_config")"
205 + touch "$fish_config"
206 + fi
207 +
208 if [[ -w $fish_config ]]; then
209 {
210 echo -e '\n# Composio CLI'
@@ -225,6 +231,11 @@ zsh)
231 zsh_config=$HOME/.zshrc
232 tilde_zsh_config=$(tildify "$zsh_config")
233
234 + # Create .zshrc if it doesn't exist and directory is writable
235 + if [[ ! -f $zsh_config && -w $(dirname "$zsh_config") ]]; then
236 + touch "$zsh_config"
237 + fi
238 +
239 if [[ -w $zsh_config ]]; then
240 {
241 echo -e '\n# Composio CLI'
@@ -266,7 +277,8 @@ bash)
277 for bash_config in "${bash_configs[@]}"; do
278 tilde_bash_config=$(tildify "$bash_config")
279
269 - if [[ -w $bash_config ]]; then
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