]> xenbits.xensource.com Git - people/sstabellini/raisin.git/commitdiff
raisin: Fix non-verbose case
authorGeorge Dunlap <george.dunlap@eu.citrix.com>
Mon, 20 Apr 2015 14:58:36 +0000 (14:58 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 20 Apr 2015 14:58:36 +0000 (14:58 +0000)
From: George Dunlap <george.dunlap@eu.citrix.com>

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 <george.dunlap@eu.citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
lib/common-functions.sh

index 36e176614c07faf02122e0296cd0b45758172f7d..4010d23205632cee123562a8a5684c8b32583520 100644 (file)
@@ -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
 }