3 # upgrade instantOS to the next version
5 if whoami | grep -q '^root$'; then
6 echo "please do not run instantupdate as root"
9 if ! checkinternet; then
10 echo "internet is required to upgrade instantOS"
14 sudo pacman -Sy --noconfirm
17 sudo pacman -Syuu --noconfirm
21 if ! iconf -i notheming; then
25 sudo bash /usr/share/instantutils/rootinstall.sh
26 sudo bash /usr/share/instantdotfiles/rootinstall.sh
27 bash /usr/share/instantdotfiles/userinstall.sh
29 if ! command -v pacdiff; then
30 sudo pacman -S --noconfirm pacman-contrib
33 if [ -z "$DIFFPROG" ]; then
34 if ! command -v vim; then
37 elif ! command -v "$DIFFPROG"; then
43 if grep '..' /etc/pacman.d/mirrorlist | grep -v '^#' | grep -q '..'; then
46 echo "mirrors have been cleared"
47 cat /usr/share/instantdotfiles/examplemirrors | sudo tee /etc/pacman.d/mirrorlist