99base/dracut-lib.sh: fix previous getargs patch

patch 9e7f495589 ignored
"getargs key=value"
master
Harald Hoyer 2011-07-20 21:38:07 +02:00
parent 9e7f495589
commit b1b678427e
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ _dogetarg() {
_getcmdline

for _o in $CMDLINE; do
if [ "${_o%%=*}" = "${1%=}" ]; then
if [ "${_o%%=*}" = "${1%%=*}" ]; then
if [ -n "${1#*=}" -a "${1#*=*}" != "${1}" ]; then
# if $1 has a "=<value>", we want the exact match
if [ "$_o" = "$1" ]; then