Skip to content

Commit

Permalink
Correct alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Antiz96 committed Jan 4, 2024
1 parent 61f8831 commit 7efd42f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/script/arch-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7efd42f

Please sign in to comment.