From dd9a45004242e5b4c8d204f3b453c14a8e742e5a Mon Sep 17 00:00:00 2001 From: natjms Date: Fri, 20 Jan 2023 16:52:39 -0800 Subject: [PATCH] Clean up stdout --- calathea.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/calathea.c b/calathea.c index 324a1f7..8a45645 100644 --- a/calathea.c +++ b/calathea.c @@ -363,7 +363,7 @@ int main(int argc, char *argv[]) { } // 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); free(createOutputDir); @@ -519,6 +519,7 @@ int main(int argc, char *argv[]) { currentPage = currentPage->next; } + printf("Pages built successfully in %s\n", outputDirectoryName); /*** Deallocation and whatnot ***/ currentPage = firstPage; @@ -534,7 +535,5 @@ int main(int argc, char *argv[]) { free(templateContent); map_free(pageMap); - // Deallocate all the pages - return 0; }