From 2791c5c7498d327d801b1349e211798bae471ede Mon Sep 17 00:00:00 2001 From: Paul Gessinger Date: Mon, 16 Dec 2024 09:29:09 +0100 Subject: [PATCH] fix opengl detection --- CI/dependencies/opengl.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CI/dependencies/opengl.sh b/CI/dependencies/opengl.sh index 10e3eda6544..4cec4cda4e4 100755 --- a/CI/dependencies/opengl.sh +++ b/CI/dependencies/opengl.sh @@ -14,7 +14,7 @@ fi os=$(spack arch --platform) -if [ "$os" == ubuntu* ]; then +if [[ "$os" == ubuntu* ]]; then ${SUDO} apt-get update ${SUDO} apt-get install -y libgl1-mesa-dev cat < "$packages_file" @@ -26,7 +26,7 @@ packages: spec: opengl@4.5 EOF cat "$packages_file" -elif [ "$os" == almalinux* ]; then +elif [[ "$os" == almalinux* ]]; then ${SUDO} dnf install -y mesa-libGLU cat < "$packages_file" packages: