fix: do not add the more button

if all the content fit
This commit is contained in:
starnakin 2023-11-08 18:19:16 +01:00
parent e0cf2a6059
commit 61db53767c

View File

@ -63,6 +63,7 @@ int main(int ac, char **av)
if (content == NULL) if (content == NULL)
return 1; return 1;
if (strlen(content) == MAX_SIZE)
strcat(content, BUTTON); strcat(content, BUTTON);
int ret = write_file("README.md", content); int ret = write_file("README.md", content);