mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 03:42:09 +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:
parent
4589dc96ef
commit
15961b03f7
@ -192,7 +192,7 @@ auto_generate_policy() {
|
|||||||
genpolicy_command+=" -p ${settings_dir}/rules.rego"
|
genpolicy_command+=" -p ${settings_dir}/rules.rego"
|
||||||
genpolicy_command+=" -j ${settings_dir}/genpolicy-settings.json"
|
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}"
|
genpolicy_command+=" -c ${config_map_yaml_file}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user