Disable bash debug (xtrace) by default, re-enable with -e DEBUG=1

This commit is contained in:
omriiluz
2015-02-28 02:45:31 -08:00
parent 42d95bd77a
commit e9d1022eb4
7 changed files with 32 additions and 6 deletions

View File

@ -46,7 +46,11 @@ usage() {
echo " -m Set client MTU"
}
set -ex
if [ "$DEBUG" == "1" ]; then
set -x
fi
set -e
OVPN_ENV=$OPENVPN/ovpn_env.sh
OVPN_SERVER=192.168.255.0/24