I\'ve been trying to figure out whats wrong with this but just can\'t figure it out..
This is the part seems to be getting an error..
elif [ $operati
Took me a while to find this but note that if you have a spacing error you will also get the same error:
[: =: unary operator expected
Correct:
if [ "$APP_ENV" = "staging" ]
vs
if ["$APP_ENV" = "staging" ]
As always setting -x debug variable helps to find these:
-x
set -x