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.
This commit is contained in:
DrDoof committed 2026-09-29 05:27:16 +02:00
1 parent 3a92459190
commit 068ec4c510
1 file changed
+1 -1
+1 -1
View File
@@ -441,7 +441,7 @@ int main(int argc, char **argv)
fputs(xbuf, ofile); fputs(xbuf, ofile);
fputs(fbuf, ofile); fputs(fbuf, ofile);
fclose(ofile); fclose(ofile);
} else if (addsDir){ } else if (addsDir && !argv[arg_index]) {
puts(dbuf); puts(dbuf);
puts(xbuf); puts(xbuf);
puts(ibuf); puts(ibuf);