Update file run_onchange_before_10-remove-bloatware.tmpl

This commit is contained in:
Brian Zalewski 2023-01-24 11:33:42 +00:00
parent d48916dbb1
commit beba3df2fb

View file

@ -17,7 +17,7 @@ for PKG in {{ $removePackages }}; do
sudo apk delete "$PKG"
fi
elif command -v apt-get > /dev/null; then
if dpkg -l "$PKG" | grep -E '^ii' /dev/null; then
if dpkg -l "$PKG" | grep -E '^ii' > /dev/null; then
sudo apt-get remove -y "$PKG"
logg success 'Removed `'"$PKG"'` via apt-get'
fi