From bba6e9829d74e94ef4b2bde75ef8a30847b770bb Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Tue, 13 Jan 2009 11:54:38 -0800 Subject: [PATCH] Handle the case when 'module-name=' is passed down without args. This is handy and shouldn't generate warnings --- scripts/zfs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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