Skip to content

Commit

Permalink
Syntax and style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Antiz96 committed Dec 3, 2023
1 parent 7e09e3a commit a1f32a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/script/arch-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ packages_cache() {
pacman_cache_total=$(("${pacman_cache_old}+${pacman_cache_uninstalled}"))

if [ "${pacman_cache_total}" -gt 0 ]; then
echo "--Old Cached Packages--"
echo "--Cached Packages--"

if [ "${pacman_cache_total}" -eq 1 ]; then
echo -e "There's an old or uninstalled cached package\n"
Expand All @@ -323,7 +323,7 @@ packages_cache() {

case "${answer}" in
[Yy]|"")
echo -e "\n--Removing Old Cached Packages--"
echo -e "\n--Removing Cached Packages--"

if [ "${pacman_cache_old}" -gt 0 ] && [ "${pacman_cache_uninstalled}" -eq 0 ]; then
echo -e "\nRemoving old cached packages..." && "${su_cmd}" paccache -r && echo -e "\nThe removal has been applied\n" || echo -e >&2 "\nAn error has occurred\nThe removal has been aborted\n"
Expand All @@ -338,7 +338,7 @@ packages_cache() {
;;
esac
else
echo -e "No old cached package found\n"
echo -e "No old or uninstalled cached package found\n"
fi
}

Expand Down

0 comments on commit a1f32a8

Please sign in to comment.