mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-05 03:26:37 +00:00
tests/k8s: fix shellcheck SC2154 in confidential_kbs.sh
Fixed "warning: HKD_PATH is referenced but not assigned. [SC2154]" Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
This commit is contained in:
parent
68d91d759a
commit
c9fb0b9c85
@ -591,7 +591,7 @@ prepare_credentials_for_qemu_se() {
|
||||
fi
|
||||
config_file_path="/opt/kata/share/defaults/kata-containers/configuration-qemu-se.toml"
|
||||
kata_base_dir=$(dirname "$(kata-runtime --config "${config_file_path}" env --json | jq -r '.Kernel.Path')")
|
||||
if [[ ! -d "${HKD_PATH}" ]]; then
|
||||
if [[ -z "${HKD_PATH:-}" || ! -d "${HKD_PATH}" ]]; then
|
||||
>&2 echo "ERROR: HKD_PATH is not set"
|
||||
return 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user