#!/bin/sh BASEDIR=$(dirname "$0") sh -c "$*" RESULT=$? if [ 0 != "${RESULT}" ];then echo "Failed '$*'! Exit code '${RESULT}' is not equal to 0" "${BASEDIR}"/deployment-create-status failure exit ${RESULT} fi