Skip to content

Commit

Permalink
Issue #160 - add fix for generate-jetty-start.sh file
Browse files Browse the repository at this point in the history
Signed-off-by: Lachlan Roberts <[email protected]>
  • Loading branch information
lachlan-roberts committed Sep 5, 2023
1 parent 23619db commit fdf43f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions generate-jetty-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ if [ -z "$JETTY_START" ] ; then
fi
rm -f $JETTY_START
DRY_RUN=$(/docker-entrypoint.sh "$@" --dry-run)
echo "exec $DRY_RUN" \
DRY_RUN=$(echo "$DRY_RUN" \
| egrep '[^ ]*java .*org\.eclipse\.jetty\.xml\.XmlConfiguration ' \
| sed -e 's/ -Djava.io.tmpdir=[^ ]*//g' -e 's/\\$//' \
> $JETTY_START
| sed -e 's/ -Djava.io.tmpdir=[^ ]*//g' -e 's/\\$//')
echo "exec $DRY_RUN" > $JETTY_START

# If jetty.start doesn't have content then the dry-run failed.
if ! [ -s $JETTY_START ]; then
Expand Down

0 comments on commit fdf43f3

Please sign in to comment.