rephrase messages

This commit is contained in:
Tobias Powalowski 2023-01-10 21:24:51 +01:00
parent 5587e703fc
commit 8ab8b7cfb9

View file

@ -197,14 +197,14 @@ _prepare_btrfs_subvolume() {
_check_btrfs_subvolume(){
[[ -n "${_DOMKFS}" && "${_FSTYPE}" == "btrfs" ]] && _DETECT_CREATE_FILESYSTEM=1
if [[ -z "$(cat ${_ANSWER})" ]]; then
_dialog --msgbox "ERROR: You have defined an empty name!\nPlease enter another name." 6 40
_dialog --msgbox "ERROR: You have defined an empty name!\nPlease enter another name." 6 60
_BTRFS_SUBVOLUME="NONE"
fi
if [[ -z "${_DETECT_CREATE_FILESYSTEM}" && -z "${_ASK_MOUNTPOINTS}" ]]; then
_mount_btrfs
for i in $(btrfs subvolume list "${_BTRFSMP}" | cut -d " " -f 7); do
if echo "${i}" | grep -q "${_BTRFS_SUBVOLUME}"; then
_dialog --msgbox "ERROR:\You have defined 2 identical SUBVOLUME name!\nPlease enter another name." 8 50
_dialog --msgbox "ERROR: You have defined 2 identical SUBVOLUME names!\nPlease enter another name." 8 60
_BTRFS_SUBVOLUME="NONE"
fi
done
@ -213,7 +213,7 @@ _check_btrfs_subvolume(){
# existing subvolumes
_subvolumes_in_use
if echo "${_SUBVOLUME_IN_USE}" | grep -Eq "${_BTRFS_SUBVOLUME}"; then
_dialog --msgbox "ERROR:\You have defined 2 identical SUBVOLUME name!\nPlease enter another name." 8 50
_dialog --msgbox "ERROR: You have defined 2 identical SUBVOLUME names!\nPlease enter another name." 8 60
_BTRFS_SUBVOLUME="NONE"
fi
fi