From ad724f4629335b11632be0c5aa7f861ad3978d70 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Fri, 29 Nov 2019 20:40:11 +0100 Subject: Better shellcheck --- arch-installer.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'arch-installer.sh') diff --git a/arch-installer.sh b/arch-installer.sh index b57264d..f6c69a4 100755 --- a/arch-installer.sh +++ b/arch-installer.sh @@ -111,9 +111,10 @@ awk '{print $1"-------("$4")";}' | sed -n "$id"p) " >> blkline ((dn--)) ((id++)) done + line=$(cat blkline) sel=$(dialog --nocancel --title "$1"\ --menu "Choose the drive on which Arch Linux should be installed:" 12 55 4\ - $(cat blkline)\ + "$line"\ 3>&1 1>&2 2>&3 3>&-) drv="/dev/"$(lsblk | grep disk | awk '{print $1}' | sed -n "$sel"p) rm -f blkline > /dev/null -- cgit v1.2.3