From 53398e92f3c5bf163a5e243a99c93a0060771624 Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Mon, 4 Dec 2023 12:10:31 -0800 Subject: [PATCH] fix: Properly handle asus-nvidia images in enable-supergfxctl --- .../desktop/shared/usr/share/ublue-os/just/60-custom.just | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system_files/desktop/shared/usr/share/ublue-os/just/60-custom.just b/system_files/desktop/shared/usr/share/ublue-os/just/60-custom.just index 07b7ef49..801bd389 100644 --- a/system_files/desktop/shared/usr/share/ublue-os/just/60-custom.just +++ b/system_files/desktop/shared/usr/share/ublue-os/just/60-custom.just @@ -72,7 +72,7 @@ enable-supergfxctl: #!/usr/bin/env bash IMAGE_INFO="/usr/share/ublue-os/image-info.json" IMAGE_FLAVOR=$(jq -r '."image-flavor"' < $IMAGE_INFO) - if [[ ${IMAGE_FLAVOR} == 'nvidia' ]]; then + if [[ "$IMAGE_FLAVOR" =~ "nvidia" ]]; then systemctl enable --now supergfxd.service else echo "This requires an Nvidia image."