[PATCH v2] checkupdates: Use `pacman -Qu`'s exit code

Daniel M. Capella polyzen at archlinux.org
Thu Apr 18 00:29:41 UTC 2019


Closes FS#62336

Signed-off-by: Daniel M. Capella <polyzen at archlinux.org>
---
 src/checkupdates.sh.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/checkupdates.sh.in b/src/checkupdates.sh.in
index 1d01fda..3558d17 100644
--- a/src/checkupdates.sh.in
+++ b/src/checkupdates.sh.in
@@ -59,6 +59,6 @@ if ! fakeroot -- pacman -Sy --dbpath "$CHECKUPDATES_DB" --logfile /dev/null &> /
 fi
 pacman -Qu --dbpath "$CHECKUPDATES_DB" 2> /dev/null | grep -v '\[.*\]'
 
-exit 0
+exit ${PIPESTATUS[0]}
 
 # vim: set noet:
-- 
2.21.0


More information about the pacman-contrib mailing list