Add option to run scripts in debug mode

This commit is contained in:
Manuel Alejandro de Brito Fontes 2019-05-13 22:31:06 -04:00
parent 5cf8b348c1
commit 94bfca470b
8 changed files with 33 additions and 1 deletions

View file

@ -14,6 +14,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
if ! [ -z $DEBUG ]; then
set -x
fi
set -o errexit
set -o nounset
set -o pipefail

View file

@ -14,6 +14,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
if ! [ -z $DEBUG ]; then
set -x
fi
set -o errexit
set -o nounset
set -o pipefail

View file

@ -14,6 +14,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
if ! [ -z $DEBUG ]; then
set -x
fi
set -o errexit
set -o nounset
set -o pipefail

View file

@ -14,6 +14,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
if ! [ -z $DEBUG ]; then
set -x
fi
set -o errexit
set -o nounset
set -o pipefail

View file

@ -14,6 +14,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
if ! [ -z $DEBUG ]; then
set -x
fi
set -o errexit
set -o nounset
set -o pipefail

View file

@ -14,6 +14,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
if ! [ -z $DEBUG ]; then
set -x
fi
set -o errexit
set -o nounset
set -o pipefail

View file

@ -14,6 +14,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
if ! [ -z $DEBUG ]; then
set -x
fi
set -o errexit
set -o nounset
set -o pipefail

View file

@ -15,7 +15,9 @@
# limitations under the License.
set -e
set -x
if ! [ -z $DEBUG ]; then
set -x
fi
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"