[PATCH] checkupdates: Use `pacman -Qu`'s exit code
Closes FS#62336 Signed-off-by: Daniel M. Capella <polyzen@archlinux.org> --- src/checkupdates.sh.in | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/checkupdates.sh.in b/src/checkupdates.sh.in index 1d01fda..3db2e8b 100644 --- a/src/checkupdates.sh.in +++ b/src/checkupdates.sh.in @@ -59,6 +59,4 @@ if ! fakeroot -- pacman -Sy --dbpath "$CHECKUPDATES_DB" --logfile /dev/null &> / fi pacman -Qu --dbpath "$CHECKUPDATES_DB" 2> /dev/null | grep -v '\[.*\]' -exit 0 - # vim: set noet: -- 2.21.0
Closes FS#62336 Signed-off-by: Daniel M. Capella <polyzen@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
participants (1)
-
Daniel M. Capella