3 ###############################################################################
4 ## add repo containing instantOS programs and required prebuilt aur programs ##
5 ###############################################################################
7 echo "adding instantOS repo"
10 if ! grep -q "$1"'\.surge\.sh' /etc/pacman.conf; then
12 echo "[instant]" >>/etc/pacman.conf
13 echo "SigLevel = Optional TrustAll" >>/etc/pacman.conf
14 echo "Server = http://$1.surge.sh" >>/etc/pacman.conf
16 echo "instantOS $1 repository already added"
21 if uname -m | grep -q '^x'; then
22 # default is 64 bit repo
24 elif uname -m | grep 'arm'; then
26 elif uname -m | grep '^i'; then
29 echo "no suitable repo for architecture found"