Handle the case when 'module-name=' is passed down without args. This is handy and shouldn't generate warnings

This commit is contained in:
Brian Behlendorf 2009-01-13 11:54:38 -08:00
parent 6791a1ee34
commit bba6e9829d
1 changed files with 1 additions and 1 deletions

View File

@ -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