Use cut
This commit is contained in:
parent
68dcffe3e2
commit
a3e506e2cc
|
@ -29,7 +29,8 @@ showDisks() {
|
||||||
formatOptions $(lsblk -d -p -n -l -o NAME,SIZE -e 7,11)
|
formatOptions $(lsblk -d -p -n -l -o NAME,SIZE -e 7,11)
|
||||||
|
|
||||||
result=$(whiptail --title "Select a disk" --menu "" 0 0 0 "${options[@]}" 3>&1 1>&2 2>&3)
|
result=$(whiptail --title "Select a disk" --menu "" 0 0 0 "${options[@]}" 3>&1 1>&2 2>&3)
|
||||||
disk=${result%%\ *}
|
disk=$(echo $result | cut -d' ' -f1)
|
||||||
|
echo $disk
|
||||||
}
|
}
|
||||||
|
|
||||||
partDisks() {
|
partDisks() {
|
||||||
|
@ -217,4 +218,4 @@ runScript() {
|
||||||
finishInstallation
|
finishInstallation
|
||||||
}
|
}
|
||||||
|
|
||||||
# runScript
|
runScript
|
Loading…
Reference in New Issue