diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/cli/stasis_indexer/website.c | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/src/cli/stasis_indexer/website.c b/src/cli/stasis_indexer/website.c index cf5f3c2..9fa7b57 100644 --- a/src/cli/stasis_indexer/website.c +++ b/src/cli/stasis_indexer/website.c @@ -18,11 +18,12 @@ int indexer_make_website(const struct Delivery *ctx) {      struct StrList *inputs = NULL;      for (size_t i = 0; i < strlist_count(dirs); i++) {          const char *pattern = "*.md"; -        if (get_files(&inputs, ctx->storage.delivery_dir, pattern)) { -            SYSERROR("%s does not contain files with pattern: %s", ctx->storage.delivery_dir, pattern); -            guard_strlist_free(&inputs); +        char *dirpath = strlist_item(dirs, i); +        if (get_files(&inputs, dirpath, pattern)) { +            SYSERROR("%s does not contain files with pattern: %s", dirpath, pattern);              continue;          } +          char *root = strlist_item(dirs, i);          for (size_t x = 0; x < strlist_count(inputs); x++) {              char cmd[PATH_MAX] = {0}; | 
