mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 05:12:27 +00:00
Replace hardcoded pacman
This commit is contained in:
parent
b5520a3ef7
commit
9a4ed01e96
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user