summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2014-08-12 16:28:33 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2014-08-12 16:33:47 +0000
commita0ff2aad3a0919baef37489dbd121fa0ef6d19c4 (patch)
tree9c8dd20ce43dfe7ea349d55fb06091bf84304ef5
parent2fd432ffe1ba37bbe0101f903653df2c5ad3b4a6 (diff)
downloadmorph-a0ff2aad3a0919baef37489dbd121fa0ef6d19c4.tar.gz
Yarns: Preserve the output of morph foo in out-foo
-rw-r--r--yarns/morph.shell-lib5
1 files changed, 3 insertions, 2 deletions
diff --git a/yarns/morph.shell-lib b/yarns/morph.shell-lib
index 05c11bcc..9d67f2ab 100644
--- a/yarns/morph.shell-lib
+++ b/yarns/morph.shell-lib
@@ -37,11 +37,12 @@ run_morph()
{
{
set +e
- "$SRCDIR"/morph \
+ "$SRCDIR"/morph --verbose \
--cachedir-min-space=0 --tempdir-min-space=0 \
--no-default-config --config "$DATADIR/morph.conf" "$@" \
- 2> "$DATADIR/result-$1"
+ 2> "$DATADIR/result-$1" > "$DATADIR/out-$1"
local exit_code="$?"
+ cat "$DATADIR/out-$1"
cat "$DATADIR/result-$1" >&2
return "$exit_code"
}