Replace hardcoded pacman

This commit is contained in:
Jeevitha Kannan K S 2024-10-13 10:02:11 +05:30
parent b5520a3ef7
commit 9a4ed01e96
No known key found for this signature in database
GPG Key ID: 5904C34A2F7CE333

View File

@ -13,7 +13,7 @@ installQEMUDesktop() {
}
installQEMUEmulators() {
if ! pacman -Q | grep -q "qemu-emulators-full "; then
if ! "$PACKAGER" -Q | grep -q "qemu-emulators-full "; then
printf "%b\n" "${YELLOW}Installing QEMU-Emulators.${RC}"
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm qemu-emulators-full swtpm
else
@ -43,7 +43,7 @@ checkKVM() {
setupLibvirt() {
printf "%b\n" "${YELLOW}Configuring Libvirt.${RC}"
if pacman -Q | grep -q "iptables "; then
if "$PACKAGER" -Q | grep -q "iptables "; then
"$ESCALATION_TOOL" "$PACKAGER" -Rdd --noconfirm iptables
fi