mirror of
https://gitlab.com/JKANetwork/JKArch.git
synced 2026-02-27 23:43:43 +01:00
Splitting things
This commit is contained in:
@@ -14,16 +14,10 @@ fi
|
||||
|
||||
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 "El instalador tiene dos versiones, una estable la cual recomendamos, y otra experimental que usamos para probar cambios antes de mandarlos a todos y puede tener más fallos / JKArch has a stable installer that we recommend to use, and a experimental one that is not stable and use for tests and may fail. / " 0 70 5 1 "Estable/Stable (Por defecto, recomendado)" 2 "Experimental (Not recommended)"`
|
||||
|
||||
else #Online install
|
||||
#Download and exec
|
||||
wget -nv https://gitlab.com/JKANetwork/JKArch/raw/master/archinstall/archinstall.sh -O archinstall.sh
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user