[yelp-tools] yelp-check: Fixed style list handling in `yelp-check style`
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-tools] yelp-check: Fixed style list handling in `yelp-check style`
- Date: Tue, 14 Feb 2017 17:47:49 +0000 (UTC)
commit 0fa70e34daa8eb59566dbbf9b04c6e915c54f3e8
Author: Shaun McCance <shaunm gnome org>
Date: Tue Feb 14 12:47:14 2017 -0500
yelp-check: Fixed style list handling in `yelp-check style`
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]