mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2026-01-01 01:17:34 +00:00
Better approach for extracting first column
This commit is contained in:
parent
905bb43563
commit
6154b986fb
1 changed files with 1 additions and 1 deletions
|
|
@ -268,7 +268,7 @@ mapfile -t ARR < <(lsblk -dpno NAME,SIZE,MODEL | grep -P "/dev/sd|nvme|vd");
|
|||
PS3="Please select the number of the corresponding disk (e.g. 1): "
|
||||
select ENTRY in "${ARR[@]}";
|
||||
do
|
||||
DISK="$(ARR=($ENTRY);echo ${ARR[0]})"
|
||||
DISK="$($ENTRY | awk '{print $1;}')"
|
||||
info_print "Arch Linux will be installed on the following disk: $DISK"
|
||||
break
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue