Skip to content

Commit

Permalink
docker: Include logfile in output
Browse files Browse the repository at this point in the history
[why]
Some valuable information might be in the logfile, that gets created
only on demand.

[how]
Copy it over to the output if existing.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
  • Loading branch information
Finii committed Feb 5, 2024
1 parent 1fccd8a commit 7ebbc4e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions bin/scripts/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ printf "Running with options:\n%s\nParallelism %s\n" "$args" "$PN"

# shellcheck disable=SC2086
find /in -type f \
\( -iname '*.otf' -o -iname '*.ttf' -o -iname '*.woff' -o -iname '*.eot' -o -iname '*.ttc' \) \
-print0 \
| parallel --verbose --null "--jobs=${PN}" fontforge -script /nerd/font-patcher -out /out $args {}
\( -iname '*.otf' -o -iname '*.ttf' -o -iname '*.woff' -o -iname '*.eot' -o -iname '*.ttc' \) \
-print0 \
| parallel --verbose --null "--jobs=${PN}" fontforge -script /nerd/font-patcher -out /out $args {}

if [ -f font-patcher-log.txt ]; then
cp -f font-patcher-log.txt /out
fi

exit 0

0 comments on commit 7ebbc4e

Please sign in to comment.