diff options
-rw-r--r-- | src/stasis_indexer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stasis_indexer.c b/src/stasis_indexer.c index 893d739..25f0fa7 100644 --- a/src/stasis_indexer.c +++ b/src/stasis_indexer.c @@ -352,9 +352,6 @@ int indexer_make_website(struct Delivery *ctx) { // Converts a markdown file to html strcpy(cmd, "pandoc "); strcat(cmd, pandoc_versioned_args); - strcat(cmd, "--standalone "); - strcat(cmd, "-f markdown+alerts "); - strcat(cmd, "-f markdown+autolink_bare_uris "); if (have_css) { strcat(cmd, "--css "); strcat(cmd, css_filename); @@ -761,6 +758,9 @@ int main(int argc, char *argv[]) { if (isempty(rootdirs[i]) || !strcmp(rootdirs[i], "/") || !strcmp(rootdirs[i], "\\")) { SYSERROR("Unsafe directory: %s", rootdirs[i]); exit(1); + } else if (access(rootdirs[i], F_OK)) { + SYSERROR("%s: %s", rootdirs[i], strerror(errno)); + exit(1); } } } |