diff --git a/src/script/arch-update.sh b/src/script/arch-update.sh index 00cd446..959b391 100755 --- a/src/script/arch-update.sh +++ b/src/script/arch-update.sh @@ -187,17 +187,17 @@ list_packages() { fi if [ -n "${packages}" ]; then - main_msg "Packages:" + main_msg "Packages:\n" echo -e "${packages}\n" fi if [ -n "${aur_packages}" ]; then - main_msg "AUR Packages:" + main_msg "AUR Packages:\n" echo -e "${aur_packages}\n" fi if [ -n "${flatpak_packages}" ]; then - main_msg "Flatpak Packages:" + main_msg "Flatpak Packages:\n" echo -e "${flatpak_packages}\n" fi @@ -230,7 +230,7 @@ list_news() { mapfile -t news_dates < <(echo "${news}" | htmlq td | grep -v "class" | grep "[0-9]" | sed "s/<[^>]*>//g" | head -5 | xargs -I{} date -d "{}" "+%s") echo - main_msg "Arch News:" + main_msg "Arch News:\n" i=1 while IFS= read -r line; do @@ -316,7 +316,7 @@ orphan_packages() { fi if [ -n "${orphan_packages}" ]; then - main_msg "Orphan Packages:" + main_msg "Orphan Packages:\n" echo -e "${orphan_packages}\n" if [ "$(echo "${orphan_packages}" | wc -l)" -eq 1 ]; then @@ -349,7 +349,7 @@ orphan_packages() { if [ -n "${flatpak}" ]; then if [ -n "${flatpak_unused}" ]; then - main_msg "Flatpak Unused Packages:" + main_msg "Flatpak Unused Packages:\n" echo -e "${flatpak_unused}\n" if [ "$(echo "${flatpak_unused}" | wc -l)" -eq 1 ]; then @@ -361,7 +361,7 @@ orphan_packages() { case "${answer}" in [Yy]) echo - main_msg "Removing Flatpak Unused Packages..." + main_msg "Removing Flatpak Unused Packages...\n" if ! flatpak remove --unused; then echo @@ -458,7 +458,7 @@ pacnew_files() { pacnew_files=$(pacdiff -o) if [ -n "${pacnew_files}" ]; then - main_msg "Pacnew Files:" + main_msg "Pacnew Files:\n" echo -e "${pacnew_files}\n" if [ "$(echo "${pacnew_files}" | wc -l)" -eq 1 ]; then @@ -494,7 +494,7 @@ kernel_reboot() { fi if [ -z "${kernel_compare}" ]; then - main_msg "Reboot required:\nThere's a pending kernel update on your system requiring a reboot to be applied\n" + main_msg "Reboot required:\n\nThere's a pending kernel update on your system requiring a reboot to be applied\n" ask_msg "Would you like to reboot now? [y/N]" case "${answer}" in