unify select buttons

This commit is contained in:
Tobias Powalowski 2024-06-03 20:49:34 +02:00
parent c51ff8e39f
commit daa94582ba

View file

@ -41,9 +41,9 @@ _partition() {
while true; do
# Prompt the user with a list of known disks
#shellcheck disable=SC2086
_dialog --title " Partition Device " --no-cancel --menu "" 13 45 6 ${_DISKS} "OTHER" "_" "< Back" "Return To Previous Menu" 2>"${_ANSWER}" || return 1
_dialog --title " Partition Device " --no-cancel --menu "" 13 45 6 ${_DISKS} "> CUSTOM" "Your Custom Device" "< Back" "Return To Previous Menu" 2>"${_ANSWER}" || return 1
_DISK=$(cat "${_ANSWER}")
if [[ "${_DISK}" == "OTHER" ]]; then
if [[ "${_DISK}" == "> CUSTOM" ]]; then
_dialog --inputbox "Enter the full path to the device you wish to partition" 8 65 "/dev/sda" 2>"${_ANSWER}" || _DISK=""
_DISK=$(cat "${_ANSWER}")
fi