mirror of
https://gitlab.com/JKANetwork/JKArch.git
synced 2026-02-17 10:41:32 +01:00
New options
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
##This script only selects the installer language and, if its a online install, asks user to use stable or devel installer
|
||||
idiom=`dialog --stdout --nocancel --backtitle "JKArch Instalation" --title "Language selection" --menu "Select your language / Selecciona tu idioma" 0 70 5 1 "Spanish (es)" 2 "English (en) (In progress)"`
|
||||
|
||||
if [[ $idiom -eq 1 ]];then
|
||||
@@ -12,8 +12,18 @@ elif [[ $idiom -eq 2 ]];then
|
||||
#LANG="en_GB.UTF-8" ; export LANG
|
||||
fi
|
||||
|
||||
if [[ ! -f translations.sh ]];then #Is an online install
|
||||
wget -nv https://gitlab.com/JKANetwork/JKArch/raw/master/archinstall/archinstall.sh -O archinstall.sh
|
||||
if [[ -f translations.sh ]];then #If its a offline install (ISO)
|
||||
exec ./archinstall.sh $sclang 1 #Offline
|
||||
else #Online install, it has to check if it uses stable or devel release of the installer
|
||||
branch=`dialog --stdout --nocancel --backtitle "JKArch Instalation" --title "Installer selection" --menu "Select if you want Stable (Recommended) or Devel (Experimental) installer/ Selecciona si quieres el instalador estable (Recomendado) o el experimental" 0 70 5 1 "Stable/Estable (Por defecto, recomendado)" 2 "Devel/Experimental (Not recommended)"`
|
||||
|
||||
#Download and exec
|
||||
|
||||
if [[ $branch -eq 1 ]];then #Stable
|
||||
wget -nv https://gitlab.com/JKANetwork/JKArch/raw/master/archinstall/archinstall.sh -O archinstall.sh
|
||||
else #Devel
|
||||
wget -nv https://gitlab.com/JKANetwork/JKArch/raw/master/archinstall/archinstall-dev.sh -O archinstall.sh
|
||||
fi
|
||||
wget -nv https://gitlab.com/JKANetwork/JKArch/raw/master/archinstall/translations.sh -O translations.sh
|
||||
|
||||
if [[ $(cat archinstall.sh | grep "^<\!DOCTYPE html>") == "<\!DOCTYPE html>" || $(cat translations.sh | grep "^<\!DOCTYPE html>") == "<\!DOCTYPE html>" ]];then
|
||||
@@ -24,6 +34,5 @@ if [[ ! -f translations.sh ]];then #Is an online install
|
||||
chmod +x archinstall.sh
|
||||
chmod +x translations.sh
|
||||
exec ./archinstall.sh $sclang 0 #Online
|
||||
else
|
||||
exec ./archinstall.sh $sclang 1 #Offline
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user