tests: k8s/tests_common.sh: -n instead of ! -z

ShellCheck:

note: Use -n instead of ! -z. [SC2236]

Signed-off-by: Dan Mihai <dmihai@microsoft.com>
This commit is contained in:
Dan Mihai 2025-03-18 23:45:59 +00:00
parent 4589dc96ef
commit 15961b03f7

View File

@ -192,7 +192,7 @@ auto_generate_policy() {
genpolicy_command+=" -p ${settings_dir}/rules.rego"
genpolicy_command+=" -j ${settings_dir}/genpolicy-settings.json"
if [[ ! -z "${config_map_yaml_file}" ]]; then
if [[ -n "${config_map_yaml_file}" ]]; then
genpolicy_command+=" -c ${config_map_yaml_file}"
fi