1
0
mirror of https://gitlab.com/JKANetwork/JKArch.git synced 2026-02-16 10:11:32 +01:00
This commit is contained in:
kprkpr
2016-06-06 08:59:25 +02:00
parent c51a4a346b
commit d399a5eece

View File

@@ -135,13 +135,10 @@ if [[ ! $optpa -eq 3 ]];then
tput setaf 6 ; echo "$(T "Your partition scheme")" ; tput setaf 9 tput setaf 6 ; echo "$(T "Your partition scheme")" ; tput setaf 9
lsblk --output NAME,KNAME,FSTYPE,SIZE,LABEL lsblk --output NAME,KNAME,FSTYPE,SIZE,LABEL
tput setaf 6 ; echo "$(T "Select root partition")" ; tput setaf 9 tput setaf 6 ; echo "$(T "Select root partition")" ; tput setaf 9
options=($(lsblk --output KNAME | sed '1d' | grep '${hd}' | grep '[1-9]$') "Salir") options=($(lsblk --output KNAME | sed '1d' | grep ${hd} | grep '[1-9]$'))
select opt in "${options[@]}" select opt in "${options[@]}"
do do
case $opt in case $opt in
"Salir")
mostrardialog "Instalacion detenida" "Se ha detenido la instalacion, se apagara el ordenador"
poweroff;;
*) *)
if [[ -z $opt ]];then if [[ -z $opt ]];then
echo "$(T "Not valid")" echo "$(T "Not valid")"
@@ -169,7 +166,7 @@ if [[ ! $optpa -eq 3 ]];then
#Selección de home #Selección de home
lsblk --output NAME,KNAME,FSTYPE,SIZE,LABEL lsblk --output NAME,KNAME,FSTYPE,SIZE,LABEL
tput setaf 6 ; echo "$(T "Select home partition")" ; tput setaf 9 tput setaf 6 ; echo "$(T "Select home partition")" ; tput setaf 9
options=($(lsblk --output KNAME | sed '1d' | grep '${hd}' | grep '[1-9]$') "No elegir") options=($(lsblk --output KNAME | sed '1d' | grep ${hd} | grep '[1-9]$') "No elegir")
select opt in "${options[@]}" select opt in "${options[@]}"
do do
case $opt in case $opt in