mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-14 13:29:31 +00:00
scripts: Add extra check to hypervisor config script
Check the specified tag in `check_tag()` to ensure it is not blank (which is invalid). Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
@@ -92,6 +92,8 @@ check_tag()
|
||||
local tag="$1"
|
||||
local entry="$2"
|
||||
|
||||
[ -z "$tag" ] && die "no tag for entry '$entry'"
|
||||
|
||||
value="${recognised_tags[$tag]}"
|
||||
|
||||
[ -n "$value" ] && return
|
||||
|
Reference in New Issue
Block a user