]> code.ossystems Code Review - openembedded-core.git/commit
runqemu: replace bashism with working shell idiom
authorPeter Seebach <peter.seebach@windriver.com>
Mon, 14 May 2012 22:49:23 +0000 (17:49 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 15 May 2012 17:44:36 +0000 (18:44 +0100)
commit716ae8dbd1fb29292c9fca0f59d3807a54508e87
tree872606b0412ae277a3c8e67cf8f9bd0e3293f4ea
parent30708f1b5bc3844e080ef863fdd22446700ba0b1
runqemu: replace bashism with working shell idiom

The =~ operator is not one of my favorites, not just due to portability
issues, but because it's not well known, and a lot of people might
not expect a regex operator.

The canonical shell idiom for this is to use case with alternation
and wildcards.  As a side note, if you are matching anything containing
core-image-sato, you don't need to also check for core-image-sato-sdk.

Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/runqemu