Var checks for unset required proper parameter expansion to avoid
nounset.
Change-Id: Ide5db47e2243c8aee0f97369bf3cd0673e7f4bd3
Signed-off-by: Tim Rozet <trozet@redhat.com>
echo "--------------------------------------------------------"
echo
-if [ -z "$DEPLOY_SCENARIO" ]; then
+if [ -z ${DEPLOY_SCENARIO+x} ]; then
echo "Deploy scenario not set!"
exit 1
else
else
ENV_TYPE="functest"
fi
- if [ -z "$OS_VERSION" ]; then
+ if [ -z ${OS_VERSION+x} ]; then
echo "INFO: OS_VERSION not passed to deploy, detecting based on branch and scenario"
case $BRANCH in
master)