protect -x under VERBOSE=1 env

This commit is contained in:
Mathieu Virbel 2012-10-13 17:59:34 +02:00
parent 4230f38968
commit 7f85afb2ed

View file

@ -1,6 +1,8 @@
#!/bin/bash
set -x
if [ "X$VERBOSE" -eq "X1" ]; then
set -x
fi
try () {
"$@" || exit -1