diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2014-08-12 16:28:33 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2014-08-12 16:33:47 +0000 |
commit | a0ff2aad3a0919baef37489dbd121fa0ef6d19c4 (patch) | |
tree | 9c8dd20ce43dfe7ea349d55fb06091bf84304ef5 /yarns | |
parent | 2fd432ffe1ba37bbe0101f903653df2c5ad3b4a6 (diff) | |
download | morph-a0ff2aad3a0919baef37489dbd121fa0ef6d19c4.tar.gz |
Yarns: Preserve the output of morph foo in out-foo
Diffstat (limited to 'yarns')
-rw-r--r-- | yarns/morph.shell-lib | 5 |
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" } |