From 9960e9e954b2f679e42d695063f39c7d01db4503 Mon Sep 17 00:00:00 2001 From: Paul Gessinger Date: Mon, 16 Dec 2024 09:36:23 +0100 Subject: [PATCH] fix opengl again --- opengl.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/opengl.sh b/opengl.sh index 4cec4cd..fe8c94e 100755 --- a/opengl.sh +++ b/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: @@ -37,4 +37,6 @@ packages: spec: opengl@4.6 EOF cat "$packages_file" +else [[ "$os" == *darwin* ]] + echo "Nothing to do on Darwin" fi