#!/bin/bash # upgrade instantOS to the next version if whoami | grep -q '^root$'; then echo "please do not run instantupdate as root" exit 1 fi if ! checkinternet; then echo "internet is required to upgrade instantOS" exit 1 fi if ! grep -q '^[^#]' /etc/pacman.d/mirrorlist; then if echo 'your mirrorlist seems to be broken yould you like to repair it? leaving it in this state might leave you unable to update' | imenu -C; then sudo tee /etc/pacman.d/mirrorlist