scripts: add DEBUG option

This commit is contained in:
Stefan Junker 2016-02-23 19:22:13 +01:00
parent 224ac412da
commit 06ea8c1e1f
2 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,7 @@
#!/usr/bin/env bash
if [[ ${DEBUG} -gt 0 ]]; then set -x; fi
NETCONFPATH=${NETCONFPATH-/etc/cni/net.d}
function exec_plugins() {

View File

@ -1,5 +1,6 @@
#!/usr/bin/env bash
set -e
if [[ ${DEBUG} -gt 0 ]]; then set -x; fi
# Run a command in a private network namespace
# set up by CNI plugins