add scripts

This commit is contained in:
Simon Belmont 2025-03-24 12:47:13 -04:00
parent 8e5898aa57
commit 428458e50a
36 changed files with 934 additions and 0 deletions

37
.bin/sh/checkupdates.sh Executable file
View file

@ -0,0 +1,37 @@
#!/bin/sh
# Check for system updates
{
echo -e "\e[94mChecking Official packages updates...
\e[39m-------------------------------------
"
checkupdates
echo -e "\e[91m
Checking AUR packages updates...
\e[39m--------------------------------
"
auracle outdated
}
# Perform system check
{
read -p "Check for errors and failed services? [y/n]:" -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
systemctl --failed && journalctl -p 3 -b --since today
fi
}
# Perform update
{
read -p "Perform system update? [y/n]:" -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
~/.bin/sh/update.sh
fi
}