From 27bc6ba490d4594940be50a68bc77fb9f3076a70 Mon Sep 17 00:00:00 2001 From: Robin Candau Date: Thu, 4 Jan 2024 11:06:28 +0100 Subject: [PATCH] Fix message formatting for the packages_cache function --- src/script/arch-update.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/script/arch-update.sh b/src/script/arch-update.sh index 7770d44..8e936fc 100755 --- a/src/script/arch-update.sh +++ b/src/script/arch-update.sh @@ -390,13 +390,12 @@ packages_cache() { pacman_cache_total=$(("${pacman_cache_old}+${pacman_cache_uninstalled}")) if [ "${pacman_cache_total}" -gt 0 ]; then - main_msg "Cached Packages:" if [ "${pacman_cache_total}" -eq 1 ]; then - info_msg "There's an old or uninstalled cached package\n" + main_msg "Cached Packages:\nThere's an old or uninstalled cached package\n" ask_msg "Would you like to remove it from the cache now? [Y/n]" else - info_msg "There are old and/or uninstalled cached packages\n" + main_msg "Cached Packages:\nThere are old and/or uninstalled cached packages\n" ask_msg "Would you like to remove them from the cache now? [Y/n]" fi @@ -450,6 +449,7 @@ pacnew_files() { pacnew_files=$(pacdiff -o) if [ -n "${pacnew_files}" ]; then + echo main_msg "Pacnew Files:" echo -e "${pacnew_files}\n"