shellcheck: SC2236: Use -n instead of ! -z. (#110)

Address the following warning:

```
ERROR: Found 1 shellcheck issue(s) which need to be resolved:
ERROR: ci/incluster_integration.sh:16:7: SC2236: Use -n instead of ! -z.
```
This commit is contained in:
Gonéri Le Bouder
2021-09-21 13:04:43 -04:00
committed by GitHub
parent b0638ad2a4
commit f095a4d238

View File

@@ -13,7 +13,7 @@ NAMESPACE=${NAMESPACE:-default}
# would resolve to quay.io/mynamespace/molecule-test-runner
# shellcheck disable=SC2034
component='molecule-test-runner'
if [[ ! -z "${MOLECULE_IMAGE}" ]]; then
if [[ -n "${MOLECULE_IMAGE}" ]]; then
IMAGE="${MOLECULE_IMAGE}"
else
IMAGE="${IMAGE_FORMAT}"