Ensure shell doesn't exit even when eval succeeds 37/10137/1
authorMichael Chapman <woppin@gmail.com>
Wed, 17 Feb 2016 12:53:16 +0000 (23:53 +1100)
committerMichael Chapman <woppin@gmail.com>
Wed, 17 Feb 2016 12:53:16 +0000 (23:53 +1100)
Change-Id: I38416967c72b03ae443d3ffa9e24fa23ad24ff74

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="
 {