From fb081cabb2ccdc35e051d3ff282a7729ed36e1cf Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Tue, 20 Sep 2016 01:31:04 -0600 Subject: [PATCH] Add trace mode --- bin/compile | 4 +--- bin/detect | 2 +- bin/release | 1 + 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/compile b/bin/compile index b4dea75..7285e34 100755 --- a/bin/compile +++ b/bin/compile @@ -1,8 +1,6 @@ #!/usr/bin/env bash # bin/compile - -set -e -set -o pipefail +set -eo pipefail; [[ $TRACE ]] && set -x NGINX_VERSION="1.10.1" NGINX_TARBALL="nginx-${NGINX_VERSION}.tar.gz" diff --git a/bin/detect b/bin/detect index f6a05c3..3877e6c 100755 --- a/bin/detect +++ b/bin/detect @@ -1,6 +1,6 @@ #!/usr/bin/env bash # bin/detect -set -e +set -eo pipefail; [[ $TRACE ]] && set -x # Exit early if app is clearly not an nginx app if [[ ! -f $1/.static ]]; then diff --git a/bin/release b/bin/release index 6c3250e..ae9fbde 100755 --- a/bin/release +++ b/bin/release @@ -1,5 +1,6 @@ #!/usr/bin/env bash # bin/release +set -eo pipefail; [[ $TRACE ]] && set -x cat <