#!/bin/bash # Arch Update # Colors blue="\033[1;34m" green="\033[1;32m" red="\033[1;31m" bold="\033[1;37m" reset="\033[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