diff --git a/Fonderie/singlepass.c b/Fonderie/singlepass.c index 9723af96..68a8946f 100644 --- a/Fonderie/singlepass.c +++ b/Fonderie/singlepass.c @@ -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);