Add archlinux admin update script
This commit is contained in:
parent
a24c34acb7
commit
f8a35868d0
1 changed files with 23 additions and 0 deletions
23
.local/bin/archlinux-admin-update
Executable file
23
.local/bin/archlinux-admin-update
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/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
|
Loading…
Reference in a new issue