unifiy confirm dialogs

This commit is contained in:
Tobias Powalowski 2024-06-04 10:57:20 +02:00
parent 951777dfe0
commit 15f9b02a73

View file

@ -462,7 +462,7 @@ _createmd()
# clean loop from used partition and options # 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')" _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 # 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 # add more devices
#shellcheck disable=SC2086 #shellcheck disable=SC2086
_dialog --no-cancel --menu "Select additional device ${_RAIDNUMBER}:" 21 50 13 ${_DEVS} ${_MDEXTRA} "> DONE" "Proceed To Summary" 2>"${_ANSWER}" || return 1 _dialog --no-cancel --menu "Select additional device ${_RAIDNUMBER}:" 21 50 13 ${_DEVS} ${_MDEXTRA} "> DONE" "Proceed To Summary" 2>"${_ANSWER}" || return 1