From af686fe6c0931c6a4898747b219d89c846b1b12f Mon Sep 17 00:00:00 2001 From: Bryan Joshua Pedini Date: Mon, 30 Sep 2024 12:01:55 +0200 Subject: [PATCH] added summary of upgradable packages in "update" command --- pman.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pman.sh b/pman.sh index ecb915f..c31ca2e 100755 --- a/pman.sh +++ b/pman.sh @@ -87,6 +87,13 @@ case "$command_args" in if [ "$command" = "pacman" ]; then su_needed=true fi + execute_command "${@}" + + su_needed=false + command_args="-Qu" + echo + echo "$(execute_command "${@}" | wc -l) packages are available for update" + exit 0 ;; "upgradable") command_args="-Qu"