You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/01/09 18:04:41 UTC

[GitHub] rabbah closed pull request #141: exit job's init.sh with error if subcommand fails

rabbah closed pull request #141: exit job's init.sh with error if subcommand fails
URL: https://github.com/apache/incubator-openwhisk-deploy-kube/pull/141
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/docker/openwhisk-catalog/init.sh b/docker/openwhisk-catalog/init.sh
index 28f8690..32eea88 100755
--- a/docker/openwhisk-catalog/init.sh
+++ b/docker/openwhisk-catalog/init.sh
@@ -1,6 +1,7 @@
 #!/bin/bash
 
 set -x
+set -e
 
 # Clone openwhisk-catalog
 # TODO: when openwhisk-catalog has releases, download release instead!
@@ -21,4 +22,3 @@ popd
 pushd openwhisk-catalog/packages
   ./installCatalog.sh $WHISK_AUTH $WHISK_API_HOST_NAME $OPENWHISK_HOME/bin/wsk
 popd
-
diff --git a/docker/routemgmt/init.sh b/docker/routemgmt/init.sh
index 342ed3e..5444fca 100755
--- a/docker/routemgmt/init.sh
+++ b/docker/routemgmt/init.sh
@@ -1,6 +1,7 @@
 #!/bin/bash
 
 set -x
+set -e
 
 export OPENWHISK_HOME=/openwhisk
 
@@ -38,4 +39,3 @@ fi
 pushd ansible/roles/routemgmt/files
   ./installRouteMgmt.sh $WHISK_AUTH $WHISK_API_HOST_NAME $WHISK_NAMESPACE $OPENWHISK_HOME/bin/wsk
 popd
-


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services