protect -x under VERBOSE=1 env
This commit is contained in:
parent
4230f38968
commit
7f85afb2ed
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
if [ "X$VERBOSE" -eq "X1" ]; then
|
||||
set -x
|
||||
fi
|
||||
|
||||
try () {
|
||||
"$@" || exit -1
|
||||
|
|
Loading…
Reference in a new issue