added summary of upgradable packages in "update" command

This commit is contained in:
Bryan Joshua Pedini 2024-09-30 12:01:55 +02:00
parent ba07f6275d
commit af686fe6c0

View File

@ -87,6 +87,13 @@ case "$command_args" in
if [ "$command" = "pacman" ]; then if [ "$command" = "pacman" ]; then
su_needed=true su_needed=true
fi fi
execute_command "${@}"
su_needed=false
command_args="-Qu"
echo
echo "$(execute_command "${@}" | wc -l) packages are available for update"
exit 0
;; ;;
"upgradable") "upgradable")
command_args="-Qu" command_args="-Qu"