fix subvolume in use

This commit is contained in:
Tobias Powalowski 2022-04-04 20:04:54 +02:00
parent c20d3228c5
commit 0361a5e4c9

View file

@ -230,7 +230,7 @@ choose_btrfs_subvolume () {
[[ -n "${SUBVOLUMES}" ]] && SUBVOLUMES_DETECTED="yes"
subvolumes_in_use
for i in ${SUBVOLUME_IN_USE}; do
SUBVOLUMES=${SUBVOLUMES//${i}\ _/}
SUBVOLUMES="$(echo $SUBVOLUMES | sed -e "s#${i} _##g")"
done
if [[ -n "${SUBVOLUMES}" ]]; then
#shellcheck disable=SC2086