From 7ebbc4e1733663307face4174d785a138371bdeb Mon Sep 17 00:00:00 2001 From: Fini Jastrow Date: Mon, 5 Feb 2024 16:35:19 +0100 Subject: [PATCH] docker: Include logfile in output [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 --- bin/scripts/docker-entrypoint.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bin/scripts/docker-entrypoint.sh b/bin/scripts/docker-entrypoint.sh index 5b7030e85..ed38ecde7 100644 --- a/bin/scripts/docker-entrypoint.sh +++ b/bin/scripts/docker-entrypoint.sh @@ -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