fix dialog

This commit is contained in:
Tobias Powalowski 2024-06-04 09:34:20 +02:00
parent cd2763d2b0
commit 5c4f10c9ea

View file

@ -107,7 +107,7 @@ _bcfs_raid_level() {
# replicas
_BCFS_REPLICATION="2 - 3 -"
#shellcheck disable=SC2086
_dialog --no-cancel --title " Replication Level " --menu "" 9 30 5 ${_BCFS_REPLICATION} "> CUSTOM" "Custom Level" >"${_ANSWER}" || return 1
_dialog --no-cancel --title " Replication Level " --menu "" 9 30 5 ${_BCFS_REPLICATION} "> CUSTOM" "Custom Level" 2>"${_ANSWER}" || return 1
_BCFS_REP_COUNT=$(cat "${_ANSWER}")
if [[ ${_BCFS_REP_COUNT} == "> CUSTOM" ]]; then
_dialog --inputbox "Enter custom replication level (number):" 8 65 \