Error in bash if statement: Conditional binary operator expected

Viewed 8152

I have an if statement in my bash script as follows:

if [[ eb status my-env-staging-worker | grep 'Green' -ne 0 ] || [ eb status my-env-staging-web | grep 'Green' -ne 0 ]]

Basically if the first or second eb status command dont have the string Green I'd like to execute some other stuff.

However I get the following Error:

Conditional binary operator expected syntax error near status script returned exit code 2

Could you tell me whats wrong?

1 Answers
Related