diff --git a/install.sh b/install.sh index 65f412e..87dcee0 100755 --- a/install.sh +++ b/install.sh @@ -29,7 +29,8 @@ showDisks() { formatOptions $(lsblk -d -p -n -l -o NAME,SIZE -e 7,11) result=$(whiptail --title "Select a disk" --menu "" 0 0 0 "${options[@]}" 3>&1 1>&2 2>&3) - disk=${result%%\ *} + disk=$(echo $result | cut -d' ' -f1) + echo $disk } partDisks() { @@ -217,4 +218,4 @@ runScript() { finishInstallation } -# runScript \ No newline at end of file +runScript \ No newline at end of file