Update Script
This is an update script that I borrowed, modified and used for myself. I thought I might just share it:
#!/bin/bash # Arch Update</code> # Colors blue="33[1;34m" green="33[1;32m" red="33[1;31m" bold="33[1;37m" reset="33[0m" # Check for root if [ $(whoami) != "root" ]; then echo -e $red"error:$reset you cannot perform this operation unless you are root." exit 1 fi # Update echo -e "$blue:: Syncing ABS $reset" abs > /dev/null pacman -Syy yaourt -Syu --aur --noconfirm echo -e "$blue:: Updating mlocate database $reset" updatedb echo -e "$green:: System update complete $reset" exit 0 |
