Switch out hardcoded pacman

This commit is contained in:
Jeevitha Kannan K S 2024-10-10 21:50:30 +05:30
parent 641b30a07b
commit 73248dea93
No known key found for this signature in database
GPG Key ID: 5904C34A2F7CE333

View File

@ -7,7 +7,7 @@ LIBVA_DIR="$HOME/linuxtoolbox/libva"
installDeps() { installDeps() {
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm base-devel dkms ninja meson "$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 for kernel in $installed_kernels; do
header="${kernel}-headers" header="${kernel}-headers"
@ -53,7 +53,7 @@ setupHardwareAccelration() {
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm libva-nvidia-driver "$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 "$ESCALATION_TOOL" "$PACKAGER" -Rdd libva
fi fi