Thread (9 messages) 9 messages, 4 authors, 2018-01-14

Re: [PATCH] travis-ci: build Git during the 'script' phase

From: Jeff King <hidden>
Date: 2018-01-14 11:07:41

Possibly related (same subject, not in this thread)

On Sun, Jan 14, 2018 at 11:37:07AM +0100, SZEDER Gábor wrote:
quoted
+fold_cmd () {
+       local name=$1; shift
+       fold "$name"
+       "$@"
+       local ret=$?
+       unfold "$name"
+       return $ret
+}
We don't have to fiddle with the return value, because we run (almost
all of) our build scripts with 'set -e', i.e. if the command fails then
the script will exit immediately.
Yeah, that's probably enough for our simple scripts, though I have been
bit by "set -e" vagaries before (e.g., calling the function inside a
conditional block).

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help