29 lines
362 B
Bash
Executable file
29 lines
362 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# Perform update
|
|
|
|
sudo pacman -Syu
|
|
|
|
# Check pacdiff
|
|
|
|
{
|
|
read -p "Execute pacdiff? [y/n]:" -n 1 -r
|
|
echo
|
|
if [[ $REPLY =~ ^[Yy]$ ]]
|
|
then
|
|
pacdiff -s
|
|
fi
|
|
}
|
|
# Check for orphans
|
|
{
|
|
read -p "Check for orphan packages? [y/n]:" -n 1 -r
|
|
echo
|
|
if [[ $REPLY =~ ^[Yy]$ ]]
|
|
then
|
|
sudo bash /home/peter/.bin/sh/orphans.sh
|
|
fi
|
|
}
|
|
|
|
# Prompt reboot
|
|
|
|
~/.bin/sh/reboot.sh
|