Clean up stdout

This commit is contained in:
Nat 2023-01-20 16:52:39 -08:00
parent 6c402c771f
commit dd9a450042
Signed by: nat
GPG Key ID: B53AB05285D710D6
1 changed files with 2 additions and 3 deletions

View File

@ -363,7 +363,7 @@ int main(int argc, char *argv[]) {
} }
// Create the directory if it doesn't exist // Create the directory if it doesn't exist
char *createOutputDir = concat_strings(2, "mkdir ", outputDirectoryName); char *createOutputDir = concat_strings(3, "mkdir ", outputDirectoryName, " 2> /dev/null");
system(createOutputDir); system(createOutputDir);
free(createOutputDir); free(createOutputDir);
@ -519,6 +519,7 @@ int main(int argc, char *argv[]) {
currentPage = currentPage->next; currentPage = currentPage->next;
} }
printf("Pages built successfully in %s\n", outputDirectoryName);
/*** Deallocation and whatnot ***/ /*** Deallocation and whatnot ***/
currentPage = firstPage; currentPage = firstPage;
@ -534,7 +535,5 @@ int main(int argc, char *argv[]) {
free(templateContent); free(templateContent);
map_free(pageMap); map_free(pageMap);
// Deallocate all the pages
return 0; return 0;
} }