diff options
author | Matt Turner <mattst88@gmail.com> | 2023-09-06 16:51:01 -0400 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2023-09-06 16:51:01 -0400 |
commit | 108e36aa107b273b6a06ab1c2ed0c6ca981d9ab3 (patch) | |
tree | 782c9c4b2a489b4c098fb4ef19f3e40228019171 /nj | |
parent | 642975c2949cbcc362c6e6260936952f1f1a5cb8 (diff) |
nj: Pull in fixes to pass through error code
Diffstat (limited to 'nj')
-rwxr-xr-x | nj | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -73,5 +73,8 @@ cd "$builddir" extratargets="$(cat extratargets 2>/dev/null)" targets="${@:-all $extratargets}" -ninja $targets -[[ "$targets" == all* ]] && [ -e install ] && ninja install > /dev/null +ninja $targets || exit $? + +if [[ "$targets" == all* ]] && [ -e install ]; then + ninja install > /dev/null +fi |