From 5b2af749e5cb111cbdd278f5d35970905f783f07 Mon Sep 17 00:00:00 2001 From: Loïc Minier Date: Sun, 13 Dec 2009 17:14:25 +0100 Subject: Factor "exec >" + "exec 2>&1" together --- pbuilder-checkparams | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pbuilder-checkparams') diff --git a/pbuilder-checkparams b/pbuilder-checkparams index 6d24221..289ae38 100755 --- a/pbuilder-checkparams +++ b/pbuilder-checkparams @@ -148,8 +148,7 @@ while [ -n "$1" ]; do ;; --logfile) log "I: Logging to $2" - exec > >(tee "$2"); - exec 2>&1 + exec > >(tee "$2") 2>&1 PBUILDER_BUILD_LOGFILE=$(readlink -f "$2") shift; shift; ;; -- cgit v1.2.3