shrink menu

This commit is contained in:
Tobias Powalowski 2022-04-11 20:59:10 +02:00
parent 56ca460b1c
commit 04c1dfd4ee

View file

@ -114,7 +114,7 @@ btrfs_raid_level() {
DIALOG --msgbox "BTRFS DATA RAID OPTIONS:\n\nRAID5/6 are for testing purpose. Use with extreme care!\n\nIf you don't need this feature select NONE." 0 0 DIALOG --msgbox "BTRFS DATA RAID OPTIONS:\n\nRAID5/6 are for testing purpose. Use with extreme care!\n\nIf you don't need this feature select NONE." 0 0
while [[ "${BTRFS_RAID_FINISH}" != "DONE" ]]; do while [[ "${BTRFS_RAID_FINISH}" != "DONE" ]]; do
#shellcheck disable=SC2086 #shellcheck disable=SC2086
DIALOG --menu "Select the raid data level you want to use" 12 50 9 ${BTRFS_RAIDLEVELS} 2>"${ANSWER}" || return 1 DIALOG --menu "Select the raid data level you want to use" 9 50 7 ${BTRFS_RAIDLEVELS} 2>"${ANSWER}" || return 1
BTRFS_LEVEL=$(cat "${ANSWER}") BTRFS_LEVEL=$(cat "${ANSWER}")
if [[ "${BTRFS_LEVEL}" = "NONE" ]]; then if [[ "${BTRFS_LEVEL}" = "NONE" ]]; then
echo "${BTRFS_DEVICE}" >>/tmp/.btrfs-devices echo "${BTRFS_DEVICE}" >>/tmp/.btrfs-devices