fix check

This commit is contained in:
Tobias Powalowski 2024-06-04 12:26:41 +02:00
parent 91578f1a6b
commit fd9e57f0c4

View file

@ -483,7 +483,7 @@ _createmd()
_DEV=""
else
if ! [[ "${_LEVEL}" == "raid0" || "${_LEVEL}" == "linear" ]]; then
if _dialog --yesno --defaultno "Would you like to use ${_DEV} as spare device?" 0 0; then
if _dialog --defaultno --yesno "Would you like to use ${_DEV} as spare device?" 0 0; then
echo "${_DEV}" >>/tmp/.raid-spare
else
echo "${_DEV}" >>/tmp/.raid