Update file run_onchange_before_10-remove-bloatware.tmpl
This commit is contained in:
parent
7d0e87d9ea
commit
2d2da9c755
1 changed files with 13 additions and 2 deletions
|
@ -10,11 +10,22 @@ for PKG in {{ $removePackages }}; do
|
||||||
sudo apt-get remove -y "$PKG"
|
sudo apt-get remove -y "$PKG"
|
||||||
fi
|
fi
|
||||||
elif command -v dnf > /dev/null; then
|
elif command -v dnf > /dev/null; then
|
||||||
if
|
if rpm -qa | grep "$PKG" > /dev/null; then
|
||||||
|
sudo dnf remove -y "$PKG"
|
||||||
|
fi
|
||||||
elif command -v yum > /dev/null; then
|
elif command -v yum > /dev/null; then
|
||||||
|
if rpm -qa | grep "$PKG" > /dev/null; then
|
||||||
|
sudo yum remove -y "$PKG"
|
||||||
|
fi
|
||||||
elif command -v pacman > /dev/null; then
|
elif command -v pacman > /dev/null; then
|
||||||
if pacman -Qs "$PKG" > /dev/null; then
|
if pacman -Qs "$PKG" > /dev/null; then
|
||||||
sudo pacman -R "$PKG"
|
sudo pacman -R "$PKG"
|
||||||
fi
|
fi
|
||||||
|
elif command -v zypper > /dev/null; then
|
||||||
|
if rpm -qa | grep "$PKG" > /dev/null; then
|
||||||
|
sudo zypper remove -y "$PKG"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
{{- end }}
|
||||||
|
|
Loading…
Reference in a new issue