From 11f9d95444126e2bf58565b20e76aec909cd22f9 Mon Sep 17 00:00:00 2001 From: Ali Abbas Date: Mon, 19 May 2014 21:38:15 +0200 Subject: [PATCH] add environment variable to enable global bash debug mode --- bin/gvm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/gvm b/bin/gvm index 9957ea8..424c805 100755 --- a/bin/gvm +++ b/bin/gvm @@ -1,5 +1,9 @@ #!/usr/bin/env bash +[ -n "$GVM_DEBUG" ] && { + set -x +} + if [ -z "$GVM_ROOT" ]; then tput sgr0 tput setaf 1