I have this code:
<code>if [[ ! -z "${ENV_OVERRIDE-}" ]]; then
CFG="target/config/$ENV_OVERRIDE.conf"
fi
</code>
<code>if [[ ! -z "${ENV_OVERRIDE-}" ]]; then
CFG="target/config/$ENV_OVERRIDE.conf"
fi
</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:
<code>if [[ ! -z "${ENV_OVERRIDE}" ]]; then
CFG="target/config/$ENV_OVERRIDE.conf"
fi
</code>
<code>if [[ ! -z "${ENV_OVERRIDE}" ]]; then
CFG="target/config/$ENV_OVERRIDE.conf"
fi
</code>
if [[ ! -z "${ENV_OVERRIDE}" ]]; then
CFG="target/config/$ENV_OVERRIDE.conf"
fi
What does the trailing dash do after all?
1