fix: Properly handle asus-nvidia images in enable-supergfxctl

This commit is contained in:
Kyle Gospodnetich 2023-12-04 12:10:31 -08:00
parent b4b18bdcbe
commit 53398e92f3

View File

@ -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."