diff options
author | Michal Minar <miminar@redhat.com> | 2012-11-22 09:52:36 +0100 |
---|---|---|
committer | Michal Minar <miminar@redhat.com> | 2012-11-22 09:52:36 +0100 |
commit | f6457a2b1fe865f6b4e4f90e132129af81a2ae7c (patch) | |
tree | 03e14aea27ba528f450f148972e916bad2032b5d /tools/mof2wiki.sh | |
parent | b7e5a5de127252280ee2ac474f65b287ff7c1baa (diff) | |
download | openlmi-providers-f6457a2b1fe865f6b4e4f90e132129af81a2ae7c.tar.gz openlmi-providers-f6457a2b1fe865f6b4e4f90e132129af81a2ae7c.tar.xz openlmi-providers-f6457a2b1fe865f6b4e4f90e132129af81a2ae7c.zip |
fixed regex for parsing mof files
Diffstat (limited to 'tools/mof2wiki.sh')
-rwxr-xr-x | tools/mof2wiki.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mof2wiki.sh b/tools/mof2wiki.sh index bbd9b0f..0b92620 100755 --- a/tools/mof2wiki.sh +++ b/tools/mof2wiki.sh @@ -32,7 +32,7 @@ export LC_ALL=C printf "||= Defined class name =||= Inherited from =||\n" while IFS= read line; do - if [[ $line =~ ^class[[:blank:]]*([[:alnum:]_]*)":"[[:blank:]]*([[:alnum:]_]*) ]]; then + if [[ $line =~ ^class[[:blank:]]*([[:alnum:]_]*)[[:blank:]]*":"[[:blank:]]*([[:alnum:]_]*) ]]; then newclass=${BASH_REMATCH[1]} derived=${BASH_REMATCH[2]} printf "|| [wiki:%s %s] || [$schemasurl%s.html %s] ||\n" "$newclass" "$newclass" "$derived" "$derived" |