summaryrefslogtreecommitdiffstats
path: root/bin/common-functions.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-10-25 10:20:01 +0200
committerHolger Levsen <holger@layer-acht.org>2014-10-25 10:20:01 +0200
commitd1bb373a0ae05c5a5c31e46fd55d81795faaf7ce (patch)
treecf1c314eae4aa301ba5fdf84d2330d073d820867 /bin/common-functions.sh
parent36192840d0365c9b832e07c0c8bcdae7ca114400 (diff)
downloadjenkins.debian.net-d1bb373a0ae05c5a5c31e46fd55d81795faaf7ce.tar.xz
introduce common DEBUG variable
Diffstat (limited to 'bin/common-functions.sh')
-rwxr-xr-xbin/common-functions.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/bin/common-functions.sh b/bin/common-functions.sh
index 583d5b5c..c68d4170 100755
--- a/bin/common-functions.sh
+++ b/bin/common-functions.sh
@@ -52,16 +52,20 @@ else
fi
# use these settings in the scripts in the (s)chroots too
export SCRIPT_HEADER="#!/bin/bash
+ if $DEBUG ; then
+ set -x
+ fi
set -e
- set -x
export DEBIAN_FRONTEND=noninteractive
export LC_ALL=$LC_ALL
export http_proxy=$http_proxy
export MIRROR=$MIRROR"
- # be more verbose
- export
+ # be more verbose, maybe
+ if $DEBUG ; then
+ export
+ set -x
+ fi
set -e
- set -x
fi
}