git.annexia.org
/
goals.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d04b4b
)
Run code with set -e / set -x.
author
Richard W.M. Jones
<rjones@redhat.com>
Sat, 28 Dec 2019 08:50:19 +0000
(08:50 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Sat, 28 Dec 2019 08:50:19 +0000
(08:50 +0000)
src/eval.ml
patch
|
blob
|
history
diff --git
a/src/eval.ml
b/src/eval.ml
index
9fc6e5c
..
46455f7
100644
(file)
--- a/
src/eval.ml
+++ b/
src/eval.ml
@@
-96,7
+96,7
@@
and run_goal env loc name args (params, patterns, deps, code) =
| [] -> env
| d :: _ -> Ast.Env.add "^" d env in
let code = Ast.to_shell_script env loc code in
- printf "%s\n%!" (trim code);
+ let code = "set -e\nset -x\n\n" ^ code in
let r = Sys.command code in
if r <> 0 then (
eprintf "*** goal ā%sā failed with exit code %d\n" name r;