From 40e678164a66ede370c333d4399cc0da961b44c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Date: Fri, 28 Jul 2023 10:32:57 +0200 Subject: [PATCH] kata-deploy: Fix if-elif-else statement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We were doing "if - else if - else", while bash expects "if - elif - else", and that should never have happened in the first place, but it happend as part of b8b73939ea98086e1359f5cb4d5a71d940e960dc Fixes: #7422 Signed-off-by: Fabiano FidĂȘncio --- tools/packaging/kata-deploy/scripts/kata-deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/packaging/kata-deploy/scripts/kata-deploy.sh b/tools/packaging/kata-deploy/scripts/kata-deploy.sh index da700258f..f941244a0 100755 --- a/tools/packaging/kata-deploy/scripts/kata-deploy.sh +++ b/tools/packaging/kata-deploy/scripts/kata-deploy.sh @@ -44,7 +44,7 @@ shims_s390x+=( arch=$(uname -m) if [[ "${arch}" == "x86_64" ]]; then shims=${shims_x86_64[@]} -else if [[ "${arch}" == "s390x" ]]; then +elif [[ "${arch}" == "s390x" ]]; then shims=${shims_s390x[@]} else die "${arch} is a not supported architecture"