mirror of
https://github.com/simon987/sist2.git
synced 2025-04-16 08:56:45 +00:00
Ignore --incremental option when the directory does not exist (#31)
This commit is contained in:
parent
f2d68d54df
commit
d78994d427
@ -71,8 +71,8 @@ int scan_args_validate(scan_args_t *args, int argc, const char **argv) {
|
||||
if (args->incremental != NULL) {
|
||||
abs_path = abspath(args->incremental);
|
||||
if (abs_path == NULL) {
|
||||
fprintf(stderr, "File not found: %s\n", args->incremental);
|
||||
return 1;
|
||||
sist_log("main.c", SIST_WARNING, "Could not open original index! Disabled incremental scan feature.");
|
||||
args->incremental = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user