aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-buildpackage
diff options
context:
space:
mode:
authorLoïc Minier <lool@dooz.org>2009-12-13 17:14:25 +0100
committerLoïc Minier <lool@dooz.org>2009-12-13 17:14:25 +0100
commit5b2af749e5cb111cbdd278f5d35970905f783f07 (patch)
tree216c7221132df50325dd8626ea062e2e0cc1bf99 /pbuilder-buildpackage
parentd2b1fc3aaf80035f8999fc947a7536c476321aea (diff)
downloadpbuilder-5b2af749e5cb111cbdd278f5d35970905f783f07.tar
pbuilder-5b2af749e5cb111cbdd278f5d35970905f783f07.tar.gz
Factor "exec >" + "exec 2>&1" together
Diffstat (limited to 'pbuilder-buildpackage')
-rwxr-xr-xpbuilder-buildpackage3
1 files changed, 1 insertions, 2 deletions
diff --git a/pbuilder-buildpackage b/pbuilder-buildpackage
index c386628..18678af 100755
--- a/pbuilder-buildpackage
+++ b/pbuilder-buildpackage
@@ -70,8 +70,7 @@ fi
if [ -z "${PBUILDER_BUILD_LOGFILE}" ]; then
if [ "${PKGNAME_LOGFILE}" = "yes" ]; then
PBUILDER_BUILD_LOGFILE="${BUILDRESULT}/"$(basename "${PACKAGENAME}" .dsc)"${PKGNAME_LOGFILE_EXTENTION}"
- exec > >(tee "${PBUILDER_BUILD_LOGFILE}")
- exec 2>&1
+ exec > >(tee "${PBUILDER_BUILD_LOGFILE}") 2>&1
PBUILDER_BUILD_LOGFILE=$(readlink -f "${PBUILDER_BUILD_LOGFILE}")
log "I: Using pkgname logfile"
echobacktime