Use the found variable as a boolean. Signed-off-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> --- 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 cbb658e..5ee4816 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@lists.xen.org http://lists.xen.org/xen-devel