mirror of
https://github.com/simon987/sist2.git
synced 2025-04-17 09:16:44 +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) {
|
if (args->incremental != NULL) {
|
||||||
abs_path = abspath(args->incremental);
|
abs_path = abspath(args->incremental);
|
||||||
if (abs_path == NULL) {
|
if (abs_path == NULL) {
|
||||||
fprintf(stderr, "File not found: %s\n", args->incremental);
|
sist_log("main.c", SIST_WARNING, "Could not open original index! Disabled incremental scan feature.");
|
||||||
return 1;
|
args->incremental = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user