From: George Dunlap Date: Mon, 20 Apr 2015 14:58:36 +0000 (+0000) Subject: raisin: Fix non-verbose case X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=9ee49a17454d5ddd3873b53430cec50968d4a0a3;p=raisin.git raisin: Fix non-verbose case From: George Dunlap Because we use "set -e", we can't use the "a && b" construct, as it will fail and stop the script. Signed-off-by: George Dunlap Signed-off-by: Stefano Stabellini --- diff --git a/lib/common-functions.sh b/lib/common-functions.sh index 36e1766..4010d23 100644 --- a/lib/common-functions.sh +++ b/lib/common-functions.sh @@ -232,9 +232,15 @@ function for_each_component () { fi if eval [[ ! -z \$"$capital"_REVISION ]] then - [[ $VERBOSE -eq 1 ]] && echo calling "$component"_"$1" + if [[ $VERBOSE -eq 1 ]] + then + echo calling "$component"_"$1" + fi "$component"_"$1" - [[ $VERBOSE -eq 1 ]] && echo "$component"_"$1" done + if [[ $VERBOSE -eq 1 ]] + then + echo "$component"_"$1" done + fi fi done }