mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-31 16:36:38 +00:00
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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user