unifiy confirm dialogs

This commit is contained in:
Tobias Powalowski 2024-06-04 10:58:54 +02:00
parent 15f9b02a73
commit c49b0ddf31

View file

@ -462,7 +462,7 @@ _createmd()
# clean loop from used partition and options
_DEVS="$(echo "${_DEVS}" | sed -e "s#$(${_LSBLK} NAME,SIZE -d "${_DEV}" 2>"${_NO_LOG}")##g" -e 's#MISSING\ _##g' -e 's#SPARE\ _##g')"
# raid0 doesn't support missing devices
! [[ "${_LEVEL}" == "raid0" || "${_LEVEL}" == "linear" ]] && _MDEXTRA="'> MISSING' 'Degraded Raid Device'"
! [[ "${_LEVEL}" == "raid0" || "${_LEVEL}" == "linear" ]] && _MDEXTRA=""> MISSING" "Degraded Raid Device""
# add more devices
#shellcheck disable=SC2086
_dialog --no-cancel --menu "Select additional device ${_RAIDNUMBER}:" 21 50 13 ${_DEVS} ${_MDEXTRA} "> DONE" "Proceed To Summary" 2>"${_ANSWER}" || return 1