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

Operand Expected #2

Open
ad1k4h opened this issue Apr 28, 2021 · 1 comment
Open

Operand Expected #2

ad1k4h opened this issue Apr 28, 2021 · 1 comment

Comments

@ad1k4h
Copy link

ad1k4h commented Apr 28, 2021

./send-discord-host.sh: line 28: + : syntax error: operand expected (error token is "+ ")
./send-discord-host.sh: line 29: + : syntax error: operand expected (error token is "+ ")

@Matt1360
Copy link
Member

Sounds like your environment isn't set up correctly, or the vars aren't named as the script expects. That's an error you'll get when the vars aren't set:

-[~:$]- echo $(( $foo + $bar ))
bash: +  : syntax error: operand expected (error token is "+  ")

-[~:$]- foo=1; bar=2

-[~:$]- echo $(( $foo + $bar ))
3

A silly way to check what you have set is to invoke a script that dumps the current env to a file for you to inspect later.

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

2 participants