24 lines
372 B
Bash
Executable file
24 lines
372 B
Bash
Executable file
#!/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
|