|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v3 4/5] raisin: small stlye improvement in for_each_component
Use the found variable as a boolean.
Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
---
lib/common-functions.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/common-functions.sh b/lib/common-functions.sh
index f9febee..efde84c 100644
--- a/lib/common-functions.sh
+++ b/lib/common-functions.sh
@@ -281,16 +281,16 @@ function for_each_component () {
for component in `cat "$BASEDIR"/components/series`
do
- found=0
+ found=false
for enabled in $COMPONENTS
do
if [[ $enabled = $component ]]
then
- found=1
+ found=true
break
fi
done
- if [[ $found -eq 0 ]]
+ if ! $found
then
verbose_echo "$component" is disabled
continue
--
1.7.10.4
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |