#!/usr/bin/sh yay -Syu if [ $? -eq 0 ]; then echo "UPDATE SUCCEDEED" else echo "UPDATE FAILED" exit 1 fi echo "===================================================================" sudo /usr/share/archlinux/contrib/admin/checkservices if [ $? -eq 0 ]; then echo "CHECKSERVICES SUCCEDEED" else echo "CHECKSERVICES FAILED" exit 1 fi