Update file run_onchange_before_10-remove-bloatware.tmpl
This commit is contained in:
parent
579e6de907
commit
6823714e0e
1 changed files with 2 additions and 2 deletions
|
@ -9,11 +9,11 @@
|
|||
### Remove bloatware packages defined in .chezmoidata.yaml
|
||||
for PKG in {{ $removePackages }}; do
|
||||
if command -v apk > /dev/null; then
|
||||
if apk list "$PKG" | grep "$PKG"; then
|
||||
if apk list "$PKG" | grep "$PKG" > /dev/null; then
|
||||
sudo apk delete "$PKG"
|
||||
fi
|
||||
elif command -v apt-get > /dev/null; then
|
||||
if dpkg -l "$PKG" | grep "$PKG"; then
|
||||
if dpkg -l "$PKG" | grep "$PKG" > /dev/null; then
|
||||
sudo apt-get remove -y "$PKG"
|
||||
logg success 'Removed `'"$PKG"'` via apt-get'
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue