From 068ec4c5106ddacc772076e8824abaa4f88602e6 Mon Sep 17 00:00:00 2001 From: DrDoof <8052722+DrDoof@users.noreply.github.com> Date: Tue, 29 Sep 2026 05:27:16 +0200 Subject: [PATCH] fileadder: print the generated files only when there is no image to write The image rule no longer passes -p, so fileadder fell through to printing html_data.h and html_data.c on stdout on every image build. The listing is only useful when fileadder is run without an image, to see what it would generate. --- tools/fileadder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/fileadder.c b/tools/fileadder.c index eec14d23..8eeafbb2 100644 --- a/tools/fileadder.c +++ b/tools/fileadder.c @@ -441,7 +441,7 @@ int main(int argc, char **argv) fputs(xbuf, ofile); fputs(fbuf, ofile); fclose(ofile); - } else if (addsDir){ + } else if (addsDir && !argv[arg_index]) { puts(dbuf); puts(xbuf); puts(ibuf);