From 73248dea937cab38d36ba1d660bfdfe82fefbdbf Mon Sep 17 00:00:00 2001 From: Jeevitha Kannan K S Date: Thu, 10 Oct 2024 21:50:30 +0530 Subject: [PATCH] Switch out hardcoded pacman --- core/tabs/system-setup/arch/nvidia-drivers.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/tabs/system-setup/arch/nvidia-drivers.sh b/core/tabs/system-setup/arch/nvidia-drivers.sh index a6f2588b..dcf85884 100755 --- a/core/tabs/system-setup/arch/nvidia-drivers.sh +++ b/core/tabs/system-setup/arch/nvidia-drivers.sh @@ -7,7 +7,7 @@ LIBVA_DIR="$HOME/linuxtoolbox/libva" installDeps() { "$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm base-devel dkms ninja meson - installed_kernels=$(pacman -Q | grep -E '^linux(| |-rt|-rt-lts|-hardened|-zen|-lts)[^-headers]' | cut -d ' ' -f 1) + installed_kernels=$("$PACKAGER" -Q | grep -E '^linux(| |-rt|-rt-lts|-hardened|-zen|-lts)[^-headers]' | cut -d ' ' -f 1) for kernel in $installed_kernels; do header="${kernel}-headers" @@ -53,7 +53,7 @@ setupHardwareAccelration() { "$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm libva-nvidia-driver - if pacman -Q | grep -q 'libva '; then + if "$PACKAGER" -Q | grep -q 'libva '; then "$ESCALATION_TOOL" "$PACKAGER" -Rdd libva fi