summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2009-01-13 11:54:38 -0800
committerBrian Behlendorf <[email protected]>2009-01-13 11:54:38 -0800
commitbba6e9829d74e94ef4b2bde75ef8a30847b770bb (patch)
tree519d843f998bca3a65ef825aaed3f92ff4d5563d /scripts
parent6791a1ee34e321e78570b8189378afea4655a6f7 (diff)
Handle the case when 'module-name=' is passed down without args. This is handy and shouldn't generate warnings
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/zfs.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/zfs.sh b/scripts/zfs.sh
index 0e2f87250..858e3376a 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