From 6154b986fb23e6d8e0858efd894c2e5b8a6706e6 Mon Sep 17 00:00:00 2001 From: Claire West Date: Mon, 22 Dec 2025 16:09:19 -0500 Subject: [PATCH] Better approach for extracting first column --- easy-arch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easy-arch.sh b/easy-arch.sh index f01894a..a8206e4 100755 --- a/easy-arch.sh +++ b/easy-arch.sh @@ -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