I have this code:
if [[ ! -z "${ENV_OVERRIDE-}" ]]; then
CFG="target/config/$ENV_OVERRIDE.conf"
fi
It seems to be doing the same thing without the trailing dash as well:
if [[ ! -z "${ENV_OVERRIDE}" ]]; then
CFG="target/config/$ENV_OVERRIDE.conf"
fi
What does the trailing dash do after all?
1