From: Stefan Junker Date: Tue, 23 Feb 2016 18:22:13 +0000 (+0100) Subject: scripts: add DEBUG option X-Git-Url: https://git.halfball.org/?a=commitdiff_plain;h=06ea8c1e1f0cbf4fc94f84d4c26d69797c8fe9c0;p=cni.git scripts: add DEBUG option --- diff --git a/scripts/exec-plugins.sh b/scripts/exec-plugins.sh index 34da773..0cf6a6d 100755 --- a/scripts/exec-plugins.sh +++ b/scripts/exec-plugins.sh @@ -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() { diff --git a/scripts/priv-net-run.sh b/scripts/priv-net-run.sh index 3dd1a60..5a27a78 100755 --- a/scripts/priv-net-run.sh +++ b/scripts/priv-net-run.sh @@ -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