diff --git a/doc/man/arch-update.1 b/doc/man/arch-update.1 index d236949..8ebbb78 100755 --- a/doc/man/arch-update.1 +++ b/doc/man/arch-update.1 @@ -73,9 +73,9 @@ Error when updating the packages .SH USAGE .TP .B The (.desktop) icon -.RB "The (.desktop) icon is located in " "/usr/share/applications/arch-update.desktop " "(or in " "/etc/local/share/applications/arch-update.deskop " "if you installed arch-update from source)." +.RB "The (.desktop) icon is located in " "/usr/share/applications/arch-update.desktop " "(or in " "/etc/local/share/applications/arch-update.desktop " "if you installed arch-update from source)." .br -.RB "It will automatically change depending on different states (cheking for updates, updates available, installing updates, up to date). It will launch the main " "update " "function when clicked. It is easy to integrate with any DE/WM, docks, launch bars or app menus." +.RB "It will automatically change depending on different states (checking for updates, updates available, installing updates, up to date). It will launch the main " "update " "function when clicked. It is easy to integrate with any DE/WM, docks, launch bars or app menus." .TP .B The systemd timer diff --git a/src/script/arch-update.sh b/src/script/arch-update.sh index 035331f..43ba311 100755 --- a/src/script/arch-update.sh +++ b/src/script/arch-update.sh @@ -157,7 +157,7 @@ update() { if [ -n "${packages}" ]; then if ! "${su_cmd}" pacman -Syu; then icon_updates_available - echo -e >&2 "\nAn error has occured\nThe update has been aborted\n" && read -n 1 -r -s -p $'Press \"enter\" to quit\n' + echo -e >&2 "\nAn error has occurred\nThe update has been aborted\n" && read -n 1 -r -s -p $'Press \"enter\" to quit\n' exit 5 fi fi @@ -165,7 +165,7 @@ update() { if [ -n "${aur_packages}" ]; then if ! "${aur_helper}" -Syu; then icon_updates_available - echo -e >&2 "\nAn error has occured\nThe update has been aborted\n" && read -n 1 -r -s -p $'Press \"enter\" to quit\n' + echo -e >&2 "\nAn error has occurred\nThe update has been aborted\n" && read -n 1 -r -s -p $'Press \"enter\" to quit\n' exit 5 fi fi @@ -193,7 +193,7 @@ orphan_packages() { case "${answer}" in [Yy]) echo - pacman -Qtdq | "${su_cmd}" pacman -Rns - && echo -e "\nThe removal has been applied\n" || echo -e >&2 "\nAn error has occured\nThe removal has been aborted\n" + pacman -Qtdq | "${su_cmd}" pacman -Rns - && echo -e "\nThe removal has been applied\n" || echo -e >&2 "\nAn error has occurred\nThe removal has been aborted\n" ;; *) echo -e "The removal hasn't been applied\n"