fix vg listing

This commit is contained in:
Tobias Powalowski 2023-01-15 19:14:50 +01:00
parent 2785de0360
commit 3e75f2c39e

View file

@ -704,7 +704,7 @@ _getavailablevg()
for i in $(vgs -o vg_name --noheading); do
if ! vgs -o vg_free --noheading --units m "${i}" | grep -q " 0m$"; then
#shellcheck disable=SC2028
echo "${i}"'\\n'
echo "${i} $(vgs -o vg_free --noheading --units m "${i}")"
fi
done
}