From 89533d43f574f608542963a61778e5e4479de45e Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Wed, 28 Jun 2023 13:46:33 -0700 Subject: [PATCH] chore: Conditional cleanup --- Containerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Containerfile b/Containerfile index 5abf667a..5eb2725d 100644 --- a/Containerfile +++ b/Containerfile @@ -18,9 +18,10 @@ RUN wget https://copr.fedorainfracloud.org/coprs/kylegospo/bazzite/repo/fedora-$ wget https://copr.fedorainfracloud.org/coprs/kylegospo/hl2linux-selinux/repo/fedora-$(rpm -E %fedora)/kylegospo-hl2linux-selinux-fedora-$(rpm -E %fedora).repo -O /etc/yum.repos.d/_copr_kylegospo-hl2linux-selinux.repo # Install ROCM for non-Nvidia images -RUN if [ "$IMAGE_FLAVOR" != "nvidia" ]; then rpm-ostree install \ +RUN if [[ "nvidia" !== "${IMAGE_FLAVOR}" ]]; then rpm-ostree install \ rocm-hip \ - rocm-opencl ; fi + rocm-opencl \ + ; fi # Install new packages RUN rpm-ostree install \