Skip to content

Commit

Permalink
make sure the check (and other) failures get forwarded correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
exaexa committed Oct 19, 2022
1 parent ff2d89d commit 6cff989
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions run_pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,16 @@ DOCKER="docker run --rm $MOUNT $IMAGE julia --project "
mkdir -p output logs
export RESTIMATOR_OUTDIR=output

if $DOCKER components/check_input.jl "$FILE"
$DOCKER components/check_input.jl "$FILE" 2>&1 | log check
if [ ${PIPESTATUS[0]} -eq 0 ]
then
st=0
$DOCKER components/estimate_r_t.jl "$FILE" 2>&1 | log rt
[ ${PIPESTATUS[0]} -eq 0 ] || st=1
$DOCKER components/estimate_r_eff.jl "$FILE" 2>&1 | log reff
[ ${PIPESTATUS[0]} -eq 0 ] || st=1
exit $st
else
echo $0: check failed >&2
exit 1
fi 2>&1 | log check
fi

0 comments on commit 6cff989

Please sign in to comment.