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