diff options
author | Shaun McCance <shaunm@gnome.org> | 2017-02-14 12:47:14 -0500 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2017-02-14 12:47:14 -0500 |
commit | 0fa70e34daa8eb59566dbbf9b04c6e915c54f3e8 (patch) | |
tree | 69d8199d5431dcc4ee15a3167eef5b4c5fb33f0f | |
parent | 7eef4170b327ab9e0cc9d9933bd1d0672c1b6a47 (diff) | |
download | yelp-tools-0fa70e34daa8eb59566dbbf9b04c6e915c54f3e8.tar.gz |
yelp-check: Fixed style list handling in `yelp-check style`
-rwxr-xr-x | tools/yelp-check.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/yelp-check.in b/tools/yelp-check.in index 71156e4..76732f2 100755 --- a/tools/yelp-check.in +++ b/tools/yelp-check.in @@ -886,7 +886,7 @@ yelp_style_page () { if [ "x$style" = "x" ]; then output=1; fi else for pstyle in "$style"; do - for sstyle in $(echo "$check_only" | sed -e 's/,/ /'); do + for sstyle in $(echo "$check_only" | sed -e 's/,/ /g'); do if [ "$pstyle" = "$sstyle" ]; then output=1 break @@ -898,17 +898,17 @@ yelp_style_page () { fi if [ "x$check_except_defined" = "x1" ]; then if [ "x$check_except" = "x" ]; then - # We treat an empty --only '' as excluding pages with no style + # We treat an empty --except '' as excluding pages with no style if [ "x$style" = "x" ]; then output=0; fi else for pstyle in "$style"; do - for sstyle in $(echo "$check_except" | sed -e 's/,/ /'); do + for sstyle in $(echo "$check_except" | sed -e 's/,/ /g'); do if [ "$pstyle" = "$sstyle" ]; then output=0 break fi done - if [ "x$output" = "x0" ]; then break; fi + #if [ "x$output" = "x0" ]; then break; fi done fi fi |