mirror of
https://github.com/openshift/community.okd.git
synced 2026-03-26 19:03:14 +00:00
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:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user