update to .dot-files-laptop
This commit is contained in:
parent
ae9a611ea6
commit
3bae03e47a
46 changed files with 3332 additions and 0 deletions
29
.dot-files-laptop/.bin/sh/update.sh
Executable file
29
.dot-files-laptop/.bin/sh/update.sh
Executable file
|
@ -0,0 +1,29 @@
|
|||
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue