From f095a4d2384b52d2b382a7f1612897f0216e3d95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A9ri=20Le=20Bouder?= Date: Tue, 21 Sep 2021 13:04:43 -0400 Subject: [PATCH] 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. ``` --- ci/incluster_integration.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/incluster_integration.sh b/ci/incluster_integration.sh index 1480124..1b35cfd 100755 --- a/ci/incluster_integration.sh +++ b/ci/incluster_integration.sh @@ -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}"