From b6860aab29958c3b43830088d7182a5fbb4a4f89 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Thu, 12 Jan 2023 05:15:38 +0000 Subject: [PATCH] Update file run_onchange_before_10-remove-bloatware.tmpl --- .../_universal/run_onchange_before_10-remove-bloatware.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/.chezmoiscripts/_universal/run_onchange_before_10-remove-bloatware.tmpl b/home/.chezmoiscripts/_universal/run_onchange_before_10-remove-bloatware.tmpl index c1c10195..3e5349fd 100644 --- a/home/.chezmoiscripts/_universal/run_onchange_before_10-remove-bloatware.tmpl +++ b/home/.chezmoiscripts/_universal/run_onchange_before_10-remove-bloatware.tmpl @@ -13,7 +13,7 @@ for PKG in {{ $removePackages }}; do sudo apk delete "$PKG" fi elif command -v apt-get > /dev/null; then - if dpkg -l "$PKG" | grep "$PKG" > /dev/null; then + if dpkg -l "$PKG" | grep "$PKG" 2>&1 /dev/null; then sudo apt-get remove -y "$PKG" logg success 'Removed `'"$PKG"'` via apt-get' fi