0xacx / chatGPT-shell-cli

Simple shell script to use OpenAI's ChatGPT and DALL-E from the terminal. No Python or JS required.
https://gptshell.cc
MIT License
1.05k stars 151 forks source link

syntax error near unexpected token `else' solve #135

Open CodeWithEhtisham opened 10 months ago

CodeWithEhtisham commented 10 months ago

solve the installation error and fixed the bugs in install.sh file #134

austin-bowen commented 8 months ago

I ran this command to try installing using this modified script, but got this error:

$ curl -sS https://raw.githubusercontent.com/0xacx/chatGPT-shell-cli/7f4134a3acb757bba1adfc15e55971b53725f151/install.sh | sudo -E bash
[sudo] password for <redacted>: 
Installed chatgpt script to /usr/local/bin/chatgpt
The script will add the OPENAI_KEY environment variable to your shell profile and add /usr/local/bin to your PATH
Would you like to continue? (Yes/No)
OpenAI key and chatgpt path added to ~/.profile
Installation complete
bash: line 90: syntax error near unexpected token `else'
bash: line 90: `else'
CodeWithEhtisham commented 8 months ago

https://github.com/CodeWithEhtisham/chatGPT-shell-cli/blob/main/install.sh

here is my file copy the code and run in the terminal @austin-bowen