Skip to content

Commit

Permalink
Prevent failure if entrypoint has "false"
Browse files Browse the repository at this point in the history
  • Loading branch information
mattnotmitt authored May 7, 2021
1 parent 87bd870 commit 9a2a5d3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/sh -xe

# execute doxygen
# $1 is the path to the Doxyfile
Expand All @@ -18,8 +18,9 @@ if [ ! -f $1 ]; then
fi

# install packages; add latex-related packages only if enabled
if [ ! -z $3 ] ; then
BUILD_LATEX=$3 && $(grep -q GENERATE_LATEX\\s\*=\\s\*YES $1)
if [ ! -z $3 ] && $3; then
# Only enable BUILD_LATEX if specified in doxyfile
grep -q GENERATE_LATEX\\s\*=\\s\*YES $1 && BUILD_LATEX=true || BUILD_LATEX=false
LATEX_DIR="./$(sed -n -e 's/^OUTPUT_DIRECTORY\s*=\s*//p' $1)/$(sed -n -e 's/^LATEX_OUTPUT\s*=\s*//p' $1)"
else
BUILD_LATEX=0
Expand Down

0 comments on commit 9a2a5d3

Please sign in to comment.