Move searching for new configs before flatpaks

This commit is contained in:
2026-02-22 08:11:52 +01:00
parent 59b1b711ac
commit a9f5300ade

View File

@@ -95,15 +95,16 @@ echo -e '\nCleaning cache ...' >&2
sudo paccache -r
yaycache -r
# ---------------- Find new configs ----------------
echo -e '\nSearching for new configs ...' >&2
[ -f /etc/pacman.d/mirrorlist.pacnew ] && sudo rm /etc/pacman.d/mirrorlist.pacnew
sudo pacdiff
# ---------------- Update flatpaks ----------------
if which flatpak >/dev/null 2>&1; then
echo -e '\nUpdating flatpaks ...' >&2
flatpak update
fi
# Find new configs
echo -e '\nSearching for new configs ...' >&2
[ -f /etc/pacman.d/mirrorlist.pacnew ] && sudo rm /etc/pacman.d/mirrorlist.pacnew
sudo pacdiff
echo -e '\nIt is recommended to restart the system.'