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; }