fix check

This commit is contained in:
Tobias Powalowski 2023-01-12 18:32:45 +01:00
parent 2b076fb493
commit 6dbc337b5d

View file

@ -95,7 +95,7 @@ _create_filesystem() {
_SKIP_FILESYSTEM="" _SKIP_FILESYSTEM=""
_dialog --yesno "Would you like to create a filesystem on ${_DEVICE}?\n\n(This will overwrite existing data!)" 0 0 && _DOMKFS=1 _dialog --yesno "Would you like to create a filesystem on ${_DEVICE}?\n\n(This will overwrite existing data!)" 0 0 && _DOMKFS=1
if [[ -n "${_DOMKFS}" ]]; then if [[ -n "${_DOMKFS}" ]]; then
[[ "${_FSTYPE}" =="swap" ]] || _select_filesystem || return 1 [[ "${_FSTYPE}" == "swap" ]] || _select_filesystem || return 1
while [[ -z "${_LABEL_NAME}" ]]; do while [[ -z "${_LABEL_NAME}" ]]; do
_dialog --inputbox "Enter the LABEL name for the device, keep it short\n(not more than 12 characters) and use no spaces or special\ncharacters." 10 65 \ _dialog --inputbox "Enter the LABEL name for the device, keep it short\n(not more than 12 characters) and use no spaces or special\ncharacters." 10 65 \
"$(${_LSBLK} LABEL "${_DEVICE}")" 2>"${_ANSWER}" || return 1 "$(${_LSBLK} LABEL "${_DEVICE}")" 2>"${_ANSWER}" || return 1