fix autoprepare

This commit is contained in:
Tobias Powalowski 2023-01-09 09:28:06 +01:00
parent 2d7809ee49
commit 5cca8045a1

View file

@ -11,11 +11,11 @@ _autoprepare() {
# switch for mbr usage
_set_guid
: >/tmp/.device-names
_DISKS=$(blockdevices)
_DISKS=$(_blockdevices)
if [[ "$(echo "${_DISKS}" | wc -w)" -gt 1 ]]; then
_dialog --cr-wrap --msgbox "Available Disks:\n\n$(_getavaildisks)\n" 0 0
#shellcheck disable=SC2046
_dialog --menu "Select the storage drive to use:" 14 55 7 $(blockdevices _) 2>"${_ANSWER}" || return 1
_dialog --menu "Select the storage drive to use:" 14 55 7 $(_blockdevices _) 2>"${_ANSWER}" || return 1
_DISK=$(cat "${_ANSWER}")
else
_DISK="${_DISKS}"