diff --git a/lib/vm-zfs b/lib/vm-zfs index c210701..1f7973b 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