scripts: add DEBUG option
authorStefan Junker <mail@stefanjunker.de>
Tue, 23 Feb 2016 18:22:13 +0000 (19:22 +0100)
committerStefan Junker <mail@stefanjunker.de>
Tue, 23 Feb 2016 18:22:48 +0000 (19:22 +0100)
scripts/exec-plugins.sh
scripts/priv-net-run.sh

index 34da773..0cf6a6d 100755 (executable)
@@ -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() {
index 3dd1a60..5a27a78 100755 (executable)
@@ -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