.dotfiles/.bin/archlinux-update
2022-12-12 18:43:54 +01:00

30 lines
456 B
Bash
Executable file

#!/usr/bin/sh
sudo echo "Authenticated as root" || exit
paru -Syu --noconfirm
if [ $? -eq 0 ]; then
echo "UPDATE SUCCEDEED"
else
echo "UPDATE FAILED"
exit 1
fi
echo "==================================================================="
sudo pacman -Rns --noconfirm $(pacman -Qtdq)
sudo checkservices
if [ $? -eq 0 ]; then
echo "CHECKSERVICES SUCCEDEED"
else
echo "CHECKSERVICES FAILED"
exit 1
fi
echo ""
flatpack update -y