From 9ab39e8dd5aa2ae1e34e46e4821650f8fea7e2ee Mon Sep 17 00:00:00 2001 From: Boris Korzun Date: Fri, 19 May 2023 17:09:42 +0300 Subject: [PATCH] vm-zfs: __format_options(): updated regex --- lib/vm-zfs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vm-zfs b/lib/vm-zfs index c2107019..1f7973b9 100644 --- a/lib/vm-zfs +++ b/lib/vm-zfs @@ -140,7 +140,7 @@ zfs::__format_options(){ local _c_opts="$2" if [ -n "${_c_opts}" ]; then - _c_opts=$(echo "${_c_opts}" |sed -e 's/\ / -o /') + _c_opts=$(echo "${_c_opts}" |sed -E -e 's/[ \t]+/ -o /g') _c_opts="-o ${_c_opts}" setvar "${_val}" "${_c_opts}" return 0