From 435f2c609200ff5f361ba4541d6f5ea6f12528cb Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 15 Nov 2019 12:10:28 +0100 Subject: Few check issues --- arch-install-UEFI.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch-install-UEFI.sh b/arch-install-UEFI.sh index 332a19c..30d4d21 100644 --- a/arch-install-UEFI.sh +++ b/arch-install-UEFI.sh @@ -115,15 +115,15 @@ while [[ $answr != y && $answr != Y && $answr != yes && $answr != Yes && $answr fi if [[ $drvnm > $(lsblk | grep disk | wc -l) ]]; then echo && echo - echo "Illegal value, please choose something reasonable. Reatrying..." + echo "Illegal value, please choose something reasonable. Retrying..." fi - if [[ $drvnm < 0 ]]; then + if [[ $drvnm -lt 0 ]]; then echo && echo - echo "Illegal value, please choose something reasonable. Reatrying..." + echo "Illegal value, please choose something reasonable. Retrying..." fi if [[ $drvnm == 0 ]]; then echo && echo - echo "Illegal value, please choose something reasonable. Reatrying..." + echo "Illegal value, please choose something reasonable. Retrying..." fi done drv="/dev/"$(lsblk | grep disk | awk '{print $1}' | sed -n "$drvnm"p) -- cgit v1.2.3