Skip to content

Commit

Permalink
docker: Exit build immediately with non-zero status
Browse files Browse the repository at this point in the history
Use bash `set -e`
  • Loading branch information
plexoos committed Dec 19, 2022
1 parent 53dcd70 commit cb80daf
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 cb80daf

Please sign in to comment.