From 7f85afb2ed0a7e716bd6e7051e40ca2cd744162e Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Sat, 13 Oct 2012 17:59:34 +0200 Subject: [PATCH] protect -x under VERBOSE=1 env --- tools/environment.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/environment.sh b/tools/environment.sh index 4524e79..3d355df 100755 --- a/tools/environment.sh +++ b/tools/environment.sh @@ -1,6 +1,8 @@ #!/bin/bash -set -x +if [ "X$VERBOSE" -eq "X1" ]; then + set -x +fi try () { "$@" || exit -1