So I'm not a total Linux noob, but far from being an expert. I know some things are a built-ins and some things are not built-ins, some things are treated as literals, some other things are treated as patterns, who cares -> TLDR.
I'm having quite a lot of TLDR moments right now and I'm sick and tired of trying every possible combination or reading pages upon pages to be able to do a simple if/else. I've tried what you can see below and a bunch of other variations with [, with [[, with quotes, without quotes, etc.. I'm loosing my mind over how something so trivial in other programming languages can be so cumbersome.
All I want to do is check if a variable is either empty/unset or different from two allowed values.
if [[ -z $DEP_FLAVOUR || $DEP_FLAVOUR != "develop" || $DEP_FLAVOUR != "release" ]]; then
How can I do this so that it just works?
Thanks guys!