From 5987f3b5e1ded94b2e2f46878b7467419494793b Mon Sep 17 00:00:00 2001 From: David Gibson Date: Thu, 2 Sep 2021 14:37:50 +1000 Subject: [PATCH] snap: Test variable instead of executing "branch" In snapcraft.yaml we have a case statement on $(branch) - that is on the output of executing a command "branch". From the selections it appears that what it actually wants is to simply select on the contents of the $branch variable, which should be ${branch} instead. fixes #2558 Signed-off-by: David Gibson --- snap/snapcraft.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 5aeff412b7..7690b65d80 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -299,7 +299,7 @@ parts: | xargs ./configure # Copy QEMU configurations (Kconfigs) - case "$(branch)" in + case "${branch}" in "v5.1.0") cp -a ${kata_dir}/tools/packaging/qemu/default-configs/* default-configs ;;