Handle the case when 'module-name=' is passed down without args. This is handy and shouldn't generate warnings
This commit is contained in:
parent
6791a1ee34
commit
bba6e9829d
|
@ -122,7 +122,7 @@ load_modules() {
|
||||||
for opt in "$@"; do
|
for opt in "$@"; do
|
||||||
opt_name=`echo $opt | cut -f1 -d'='`
|
opt_name=`echo $opt | cut -f1 -d'='`
|
||||||
|
|
||||||
if [ ${name} = ${opt_name} ]; then
|
if [ ${name} = "${opt_name}" ]; then
|
||||||
value=`echo $opt | cut -f2- -d'='`
|
value=`echo $opt | cut -f2- -d'='`
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue