From 90ce6d888a34c9c1553c6a63b0aaf5f648505025 Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Tue, 3 Apr 2018 10:19:54 +0100 Subject: [PATCH] scripts: Add extra hypervisor config script option check Add a check on the element (configure option). Signed-off-by: James O. D. Hunt --- scripts/configure-hypervisor.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/configure-hypervisor.sh b/scripts/configure-hypervisor.sh index fb960e4703..9a9e3a5c0a 100755 --- a/scripts/configure-hypervisor.sh +++ b/scripts/configure-hypervisor.sh @@ -153,6 +153,8 @@ show_array() tags=$(echo "$entry"|cut -s -d: -f1) elem=$(echo "$entry"|cut -s -d: -f2-) + [ -z "$elem" ] && die "no option for entry '$entry'" + check_tags "$tags" "$entry" if [ "$action" = "dump" ]