From 2b5c351f4b03f0110f386e15c3f30b1747cbc62f Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 11 Jul 2015 17:40:26 +0100 Subject: Mirroring: Sort out stderr plumbing --- infra/dgit-mirror-rsync | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'infra') diff --git a/infra/dgit-mirror-rsync b/infra/dgit-mirror-rsync index 2858047..0162042 100755 --- a/infra/dgit-mirror-rsync +++ b/infra/dgit-mirror-rsync @@ -105,13 +105,13 @@ lock-and-process () { } attempt () { - exec >"$queue/$package.err" 2>&1 + exec 3>&2 >"$queue/$package.err" 2>&1 if actually; then rm -f "$queue/$package.a" mv -f "$queue/$package.err" "$queue/$package.log" rm "$queue/$package.lock" else - cat >&2 "$queue/$package.err" + cat >&3 "$queue/$package.err" exit 127 fi } -- cgit v1.2.3