]> gitweb.fluxo.info Git - trashman.git/commitdiff
Fix: trashman_apt_check should be silent
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 5 Dec 2020 23:42:38 +0000 (20:42 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 5 Dec 2020 23:42:38 +0000 (20:42 -0300)
share/trashman/trashman/debian

index 1175bba0122714e9c63d408b67fcd8f7aea084dc..c6d5fa26642b189132e9b56bbea3e1a6fbb0343d 100644 (file)
@@ -23,7 +23,7 @@ trashman_apt_check() {
 
   #dpkg -s $1 > /dev/null 2>&1
   # See https://stackoverflow.com/questions/1298066/check-if-a-package-is-installed-and-then-install-it-if-its-not#1298103
-  dpkg-query -W -f='${Status}' $1 | grep -q '^install ok'
+  dpkg-query -W -f='${Status}' $1 > /dev/null 2>&1 | grep -q '^install ok'
   return $?
 }