stay on menupoint

This commit is contained in:
Tobias Powalowski 2024-06-09 16:50:09 +02:00
parent b79cace8ae
commit 38daeae110
2 changed files with 6 additions and 1 deletions

View file

@ -201,11 +201,13 @@ _mainmenu() {
case $(cat "${_ANSWER}") in
"1") if [[ "${_DESTDIR}" == "/" ]]; then
_abort_running_system
_NEXTITEM=1
else
_prepare_storagedrive
fi ;;
"2") if [[ "${_DESTDIR}" == "/" ]]; then
_abort_running_system
_NEXTITEM=2
else
_install_packages
fi ;;

View file

@ -112,7 +112,10 @@ _bcfs_raid_level() {
else
# replicas
#shellcheck disable=SC2086
_dialog --no-cancel --title " Replication Level " --menu "" 9 30 5 "2" "Level 2" "3" "Level 3" "> CUSTOM" "Custom Level" 2>"${_ANSWER}" || return 1
_dialog --no-cancel --title " Replication Level " --menu "" 9 30 5 \
"2" "Level 2" \
"3" "Level 3" \
"> 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 \