Support muting command printing in shell scripts

Introduce the env variable JENKINS_DEBIAN_GLUE_QUIET to turn off the
bash option 'set -x' in various scripts.

To mute them, simply set the variable to any value.
remotes/origin/mika/pr125
Antoine Musso 10 years ago committed by Michael Prokop
parent f70b5fb5b4
commit ee9d99c46b

@ -1,6 +1,8 @@
#!/bin/bash #!/bin/bash
set -x if [ -z ${JENKINS_DEBIAN_GLUE_QUIET:-} ]; then
set -x
fi
set -u set -u
# make sure cowbuilder/pbuilder/... are available # make sure cowbuilder/pbuilder/... are available

@ -1,6 +1,8 @@
#!/bin/bash #!/bin/bash
set -x if [ -z ${JENKINS_DEBIAN_GLUE_QUIET:-} ]; then
set -x
fi
set -e set -e
set -u set -u

@ -1,6 +1,8 @@
#!/bin/bash #!/bin/bash
set -x if [ -z ${JENKINS_DEBIAN_GLUE_QUIET:-} ]; then
set -x
fi
set -e set -e
bailout() { bailout() {

@ -1,6 +1,8 @@
#!/bin/bash #!/bin/bash
set -x if [ -z ${JENKINS_DEBIAN_GLUE_QUIET:-} ]; then
set -x
fi
set -e set -e
set -u set -u

@ -1,6 +1,8 @@
#!/bin/bash #!/bin/bash
set -x if [ -z ${JENKINS_DEBIAN_GLUE_QUIET:-} ]; then
set -x
fi
set -e set -e
if [ -r /etc/jenkins/debian_glue ] ; then if [ -r /etc/jenkins/debian_glue ] ; then

Loading…
Cancel
Save