summaryrefslogtreecommitdiffstats
path: root/bin/common-functions.sh
diff options
context:
space:
mode:
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
}