From beba3df2fbbe804651e03d2a21d05ea722e6ef62 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Tue, 24 Jan 2023 11:33:42 +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 5fbdf8e7..a7ca1946 100644 --- a/home/.chezmoiscripts/_universal/run_onchange_before_10-remove-bloatware.tmpl +++ b/home/.chezmoiscripts/_universal/run_onchange_before_10-remove-bloatware.tmpl @@ -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