added summary of upgradable packages in "update" command
This commit is contained in:
parent
ba07f6275d
commit
af686fe6c0
7
pman.sh
7
pman.sh
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user