From 6b243a88f63c43add55a3f099aa94d2b5c801682 Mon Sep 17 00:00:00 2001 From: TNE Date: Mon, 4 Dec 2023 10:57:36 +0000 Subject: [PATCH] fix(installer): Fix nvidia detection causing jq error --- docs/src/subsystem/quick-start.md | 2 +- packages/gns-management/gns-update.bash | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/subsystem/quick-start.md b/docs/src/subsystem/quick-start.md index 4ceca1d..ac074f1 100644 --- a/docs/src/subsystem/quick-start.md +++ b/docs/src/subsystem/quick-start.md @@ -19,4 +19,4 @@ The script will first install Nix, the package manager, and proceed by setting u ## Updating -The system may be updated by running `sudo garuda-nix-subsystem update` from either Garuda or Garuda Nix Subsystem. This sources the latest tagged commit from our [Garuda Nix Subsystem repo](https://gitlab.com/garuda-linux/garuda-nix-subsystem), which also updates the flake's inputs and therefore all package versions. +The system may be updated by running `sudo garuda-nix-subsystem update` from either Garuda or by running `garuda-update` on Garuda Nix Subsystem. This sources the latest tagged commit from our [Garuda Nix Subsystem repo](https://gitlab.com/garuda-linux/garuda-nix-subsystem), which also updates the flake's inputs and therefore all package versions. diff --git a/packages/gns-management/gns-update.bash b/packages/gns-management/gns-update.bash index 47ced84..f6cbd9d 100644 --- a/packages/gns-management/gns-update.bash +++ b/packages/gns-management/gns-update.bash @@ -56,9 +56,9 @@ function configureGNS { packages="$(pacman -Qq garuda-nvidia-config garuda-nvidia-prime-config 2> /dev/null | xargs || true)" if [[ "$packages" =~ (^| )garuda-nvidia-prime-config($| ) ]]; then - config="$(jq '.v2.host.hardware.nvidia=prime' <<<"$config")" + config="$(jq '.v2.host.hardware.nvidia="prime"' <<<"$config")" elif [[ "$packages" =~ (^| )garuda-nvidia-config($| ) ]]; then - config="$(jq '.v2.host.hardware.nvidia=nvidia' <<<"$config")" + config="$(jq '.v2.host.hardware.nvidia="nvidia"' <<<"$config")" fi fi