2020-09-22 18:46:37 +00:00
|
|
|
#!/usr/bin/sh
|
|
|
|
|
2022-09-12 08:52:43 +00:00
|
|
|
sudo echo "Authenticated as root" || exit
|
|
|
|
|
2022-12-13 23:07:33 +00:00
|
|
|
if paru -Syu --noconfirm; then
|
2020-09-22 18:46:37 +00:00
|
|
|
echo "UPDATE SUCCEDEED"
|
|
|
|
else
|
|
|
|
echo "UPDATE FAILED"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
echo "==================================================================="
|
|
|
|
|
2022-12-13 23:07:33 +00:00
|
|
|
# shellcheck disable=SC2046
|
2022-09-12 08:52:43 +00:00
|
|
|
sudo pacman -Rns --noconfirm $(pacman -Qtdq)
|
2020-09-22 18:46:37 +00:00
|
|
|
|
2022-12-13 23:07:33 +00:00
|
|
|
if sudo checkservices; then
|
2020-09-22 18:46:37 +00:00
|
|
|
echo "CHECKSERVICES SUCCEDEED"
|
|
|
|
else
|
|
|
|
echo "CHECKSERVICES FAILED"
|
|
|
|
exit 1
|
|
|
|
fi
|
2022-12-12 17:43:54 +00:00
|
|
|
|
|
|
|
echo ""
|
|
|
|
|
2022-12-13 23:07:33 +00:00
|
|
|
flatpak update -y
|