chatGPT-shell-cli icon indicating copy to clipboard operation
chatGPT-shell-cli copied to clipboard

syntax error near unexpected token `else' solve

Open CodeWithEhtisham opened this issue 2 years ago • 2 comments

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

CodeWithEhtisham avatar Aug 15 '23 11:08 CodeWithEhtisham

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'

austin-bowen avatar Oct 24 '23 18:10 austin-bowen

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

CodeWithEhtisham avatar Oct 27 '23 10:10 CodeWithEhtisham