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
|
|
|
|
|
|
|
|
|
2023-02-02 22:26:51 +00:00
|
|
|
printf "\n=== REMOVE UNUSED PACKAGES ==========================================\n"
|
2020-09-22 18:46:37 +00:00
|
|
|
|
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
|
|
|
|
2023-02-02 22:26:51 +00:00
|
|
|
printf "\n=== FLATPAK UPDATE ==================================================\n"
|
|
|
|
|
|
|
|
flatpak update -y
|
|
|
|
|
|
|
|
printf "\n=== RUN PACDIFF =====================================================\n"
|
|
|
|
|
|
|
|
if sudo pacdiff; then
|
|
|
|
echo "PACDIFF SUCCEDEED"
|
2020-09-22 18:46:37 +00:00
|
|
|
else
|
2023-02-02 22:26:51 +00:00
|
|
|
echo "PACDIFF FAILED"
|
2020-09-22 18:46:37 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
2023-02-02 22:26:51 +00:00
|
|
|
#if sudo checkservices; then
|
|
|
|
# echo "CHECKSERVICES SUCCEDEED"
|
|
|
|
#else
|
|
|
|
# echo "CHECKSERVICES FAILED"
|
|
|
|
# exit 1
|
|
|
|
#fi
|
|
|
|
|
|
|
|
printf "\n\n\n\n=== DONE ============================================================\n"
|
2024-01-04 01:47:23 +00:00
|
|
|
|
2024-04-02 22:21:21 +00:00
|
|
|
pkill -SIGRTMIN+8 waybar >/dev/null 2>&1
|
|
|
|
|
2024-01-04 01:47:23 +00:00
|
|
|
# shellcheck disable=SC2162
|
|
|
|
read
|