diff --git a/scripts/zfs.sh b/scripts/zfs.sh index 0e2f87250c..858e3376ae 100755 --- a/scripts/zfs.sh +++ b/scripts/zfs.sh @@ -122,7 +122,7 @@ load_modules() { for opt in "$@"; do opt_name=`echo $opt | cut -f1 -d'='` - if [ ${name} = ${opt_name} ]; then + if [ ${name} = "${opt_name}" ]; then value=`echo $opt | cut -f2- -d'='` fi done diff --git a/scripts/zpios.sh b/scripts/zpios.sh index 8b32d4feaa..4a666db159 100755 --- a/scripts/zpios.sh +++ b/scripts/zpios.sh @@ -4,7 +4,7 @@ prog=zpios.sh . ../.script-config SPL_OPTIONS="spl=spl_debug_mask=-1 spl_debug_subsys=-1 spl_debug_mb=10 ${1}" -ZFS_OPTIONS="zfs=$2" +ZFS_OPTIONS="zfs=${2}" ZPIOS_OPTIONS=$3 PROFILE_ZPIOS_LOGS=$4 ZPIOS_PRE=$5