From 1e232e2b9a7ce4dbe73773b7cd9123cc15d7e9ad Mon Sep 17 00:00:00 2001 From: Derek Stevens Date: Sun, 5 Jun 2022 10:44:47 -0600 Subject: [PATCH] use png for favicon, generate thumbnails in background on build, and return exit status from build --- build.sh | 8 ++++++-- main.c | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 847a142..6e0d2d9 100755 --- a/build.sh +++ b/build.sh @@ -45,8 +45,12 @@ if [ "$1" = "-t" ]; then shift && ./tw.sh $@ fi ./main -./thumbnailer.sh build - +exitstatus=$? +if [ "${exitstatus}" = "0" ]; then + ./thumbnailer.sh build & +fi # Cleanup rm -f ./main + +exit ${exitstatus} \ No newline at end of file diff --git a/main.c b/main.c index d56361b..9fc2a32 100644 --- a/main.c +++ b/main.c @@ -535,7 +535,7 @@ FILE* build(FILE* f, Lexicon* l, char* name, char* srcpath) { } fprintf( f, - "\n" + "\n" "" NAME " — %s\n", ismetanav(name) ? "home" : name); fputs("\n", f);