fix subvolume creation

This commit is contained in:
Tobias Powalowski 2024-06-29 11:27:42 +02:00
parent 713a17830b
commit 5c336a0b73

View file

@ -235,7 +235,8 @@ _choose_btrfs_subvolume () {
for i in ${_SUBVOLUME_IN_USE}; do
_SUBVOLUMES="${_SUBVOLUMES//${i} _/}"
done
if [[ -n "${_SUBVOLUMES}" && ! "${_SUBVOLUMES}" == " " ]]; then
_SUBVOLUMES="$(echo "${_SUBVOLUMES}" | sd ' +$' '')"
if [[ -n "${_SUBVOLUMES}" ]]; then
#shellcheck disable=SC2086
_dialog --title " Subvolume " --no-cancel --menu "" 15 50 13 ${_SUBVOLUMES} 2>"${_ANSWER}" || return 1
_BTRFS_SUBVOLUME=$(cat "${_ANSWER}")