diff --git a/functions b/functions index fa05e54..13a1f5a 100755 --- a/functions +++ b/functions @@ -167,7 +167,8 @@ prompt_msg () { git_network_unreachable) msg="Can't reach rc git repo";; update_sys*) - msg="Update ready for system. $(echo $line | grep -o '[0-9]*' | head -n 1) Packages";; + nb_pkg=$(echo $line | grep -o '[0-9]*' | head -n 1) + msg="Update ready for the system. $nb_pkg new package$([ $nb_pkg -gt 1 ] && echo s)";; *) msg="";; esac