diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2019-11-27 17:02:57 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2019-11-27 17:02:57 +0100 |
commit | b79edb25acf2a83fd054130a4df984bd7f197fac (patch) | |
tree | 7b9e946a1fb086ec10406cb2a8e802bd29dea7c5 /joes-arch-install.sh | |
parent | Better word (diff) | |
download | arch-installer-b79edb25acf2a83fd054130a4df984bd7f197fac.tar.gz arch-installer-b79edb25acf2a83fd054130a4df984bd7f197fac.tar.bz2 arch-installer-b79edb25acf2a83fd054130a4df984bd7f197fac.tar.xz arch-installer-b79edb25acf2a83fd054130a4df984bd7f197fac.tar.zst arch-installer-b79edb25acf2a83fd054130a4df984bd7f197fac.zip |
blkfile ~> blkline
Diffstat (limited to 'joes-arch-install.sh')
-rwxr-xr-x | joes-arch-install.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/joes-arch-install.sh b/joes-arch-install.sh index 17883c3..b15567a 100755 --- a/joes-arch-install.sh +++ b/joes-arch-install.sh @@ -105,21 +105,21 @@ components to install:" 10 50 3 \ } jo_get_disk() { - rm -f blkfile > /dev/null + rm -f blkline > /dev/null dn=$(lsblk | grep -c disk) id=1 while [[ $dn != 0 ]]; do echo -n "$id $(lsblk | grep disk | \ -awk '{print $1"-------("$4")";}' | sed -n "$id"p) " >> blkfile +awk '{print $1"-------("$4")";}' | sed -n "$id"p) " >> blkline ((dn--)) ((id++)) done sel=$(dialog --nocancel --title "$1"\ --menu "Choose the drive on which Arch Linux should be installed:" 12 55 4\ - $(cat blkfile)\ + $(cat blkline)\ 3>&1 1>&2 2>&3 3>&-) drv="/dev/"$(lsblk | grep disk | awk '{print $1}' | sed -n "$sel"p) - rm -f blkfile > /dev/null + rm -f blkline > /dev/null } jo_get_swap_size() { |