Skip to content

Commit

Permalink
docker: Exit build immediately with non-zero status (#469)
Browse files Browse the repository at this point in the history
Use bash `set -e`
  • Loading branch information
plexoos authored Dec 20, 2022
1 parent e69433d commit b265064
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ COPY . ${STAR}
SHELL ["/bin/bash", "-l", "-c"]

RUN <<EOF
set -e
[[ $compiler = "gcc485" ]] && EXTRA_CXXFLAGS="-Werror" || EXTRA_CXXFLAGS=""
cons EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS"
find .$STAR_HOST_SYS -name *.o -exec rm '{}' \;
Expand Down

0 comments on commit b265064

Please sign in to comment.