Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syntax error in install.sh #117

Open
hvl71 opened this issue Jun 11, 2023 · 2 comments
Open

syntax error in install.sh #117

hvl71 opened this issue Jun 11, 2023 · 2 comments

Comments

@hvl71
Copy link

hvl71 commented Jun 11, 2023

I install on Ubuntu 22.04 using the install script:

curl -sS https://raw.githubusercontent.com/0xacx/chatGPT-shell-cli/main/install.sh | sudo -E bash
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 ~/.zshrc
Installation complete
bash: line 93: syntax error near unexpected token else' bash: line 93: else'

The syntax error is a bit confusing and maybe influences functionality?

@0xacx
Copy link
Owner

0xacx commented Jun 12, 2023

@hvl71 Thank you very much for reporting!
I always test this script by running it locally where it works fine but getting it with curl first does produce this syntax error, which is weird!
It does not influence functionality since it seems that the installation continues normally, but it definitely shouldn't appear as there is no syntax error in the script normally.

@felisucoibi
Copy link

felisucoibi commented Sep 21, 2023

Same problem here, not working with ubunu 23.04, same error and the openai key is not asked

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: línea 93: error sintáctico cerca del elemento inesperado else' bash: línea 93: else'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants