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