Details
-
Technical Debt
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.14.0, 1.13.3, 1.15.0
Description
We want to verify if the variable has been set.
if [ -z "$E2E_TARBALL_CACHE" ] ; then echo "You have to export the E2E Tarball Cache as E2E_TARBALL_CACHE" exit 1 fi
but the shown code immediately fails with an `unbound variable` error if the variable is not set and it does not evaluate the branch.
We should change it to something like this
if [ "${E2E_TARBALL_CACHE+x}" == x ] ; then echo "You have to export the E2E Tarball Cache as E2E_TARBALL_CACHE" exit 1 fi