From 5c2bca13dc45e1fc90a70066628eec8fb69c7117 Mon Sep 17 00:00:00 2001 From: rishwanth1995 Date: Fri, 31 Aug 2018 11:07:36 -0400 Subject: [PATCH] added no casedir option --- unix/launch_script_bootable.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unix/launch_script_bootable.sh b/unix/launch_script_bootable.sh index 56e905dae26..e6caed8c57b 100644 --- a/unix/launch_script_bootable.sh +++ b/unix/launch_script_bootable.sh @@ -90,7 +90,8 @@ showCaseDirOptions () { casedirremovable=( $(lsblk -lno NAME,RM,MOUNTPOINT,LABEL | awk '$3 != "" {print $1,$2,$3,$4}' | awk '$2 == 1 {print $3}') ) casedir=( $(lsblk -lno NAME,SIZE,MOUNTPOINT | awk '$3 != "" {print $1,$2,$3}') ) local lengthCaseDir=${#casedir[@]} - optionsCasedirLength=$(( lengthCaseDir / 3 )) + casedir[lengthCaseDir]="No Drive to Choose" + optionsCasedirLength=$(( lengthCaseDir / 3 + 1 )) printf "%-10s\t%-10s\t%-10s\t%-30s\t\n" "Selection" "Disk" "Size" "Mount" echo "-----------------------------------------------------------------------------------------------------"