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

unexpected operator #3

Open
AlexCroydon opened this issue May 13, 2020 · 3 comments
Open

unexpected operator #3

AlexCroydon opened this issue May 13, 2020 · 3 comments

Comments

@AlexCroydon
Copy link

Please help sort this issue, I have spend 2 days with no luck

root@phpcryptobot:~/PHPTradingBot# sh services.sh
services.sh: 3: [: =: unexpected operator
services.sh: 31: [: =: unexpected operator
services.sh: 63: [: =: unexpected operator
services.sh: 68: [: =: unexpected operator

@justdick
Copy link

replace those line with double "[[ ]]" in the services.sh file
like this if [[ $1 = "daemon" ]]; then

@AlexCroydon
Copy link
Author

Hi thank you for help, but it doesn't help, another issue coming up

services.sh: 3: services.sh: [[: not found
services.sh: 31: [: =: unexpected operator
services.sh: 63: [: =: unexpected operator
services.sh: 68: [: =: unexpected operator

@dmazlum
Copy link

dmazlum commented Feb 1, 2021

Hello,

Replace [ $1 = "daemon" ] to [ "$1" = "daemon" ];

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