check for the export directory (singlepass)

This commit is contained in:
tTh 2024-11-13 13:37:54 +01:00
parent 67ba638690
commit 8202df9a63

View File

@ -13,6 +13,7 @@
#include "../floatimg.h"
#include "utilfuncs.h"
#include "crapulator.h"
#include "filterstack.h"
#include "single.h"
@ -198,6 +199,13 @@ if (repeat < 1) {
exit(2);
}
foo = check_if_export_dir_is_valid(outdir, 0);
if ( !foo ) {
fprintf(stderr, "** export dir (%s) not valid\n", outdir);
fprintf(stderr, "** may be you have to create it ?\n");
exit(1);
}
foo = parse_filter_chain(FILTERS, filterchain);
if (foo) {
fprintf(stderr, "err %d in parse_filter_chain\n", foo);