Ensure shell doesn't exit even when eval succeeds 39/10139/1
authorMichael Chapman <woppin@gmail.com>
Wed, 17 Feb 2016 12:53:16 +0000 (23:53 +1100)
committerDan Radez <dradez@redhat.com>
Wed, 17 Feb 2016 12:56:12 +0000 (12:56 +0000)
Change-Id: I38416967c72b03ae443d3ffa9e24fa23ad24ff74
(cherry picked from commit bc44e8d441cf239f3a8ed6e6f4f924be2ef18c41)

ci/deploy.sh

index f7b30a1..931881d 100755 (executable)
@@ -303,7 +303,7 @@ parse_inventory_file() {
     exit 1
   fi
 
-  eval $(parse_yaml $INVENTORY_FILE) || echo "${red}Failed to parse inventory.yaml. Aborting.${reset}" && exit 1
+  eval $(parse_yaml $INVENTORY_FILE) || ( echo "${red}Failed to parse inventory.yaml. Aborting.${reset}" && exit 1 )
 
   instack_env_output="
 {