summaryrefslogtreecommitdiff
path: root/infra
diff options
context:
space:
mode:
Diffstat (limited to 'infra')
-rwxr-xr-xinfra/dgit-mirror-rsync4
1 files changed, 2 insertions, 2 deletions
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
}