Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=xbdmenu.git;a=commitdiff;h=398c11af796ab09c0c958e789704bea63e8526e8
commit 398c11af796ab09c0c958e789704bea63e8526e8 Author: James Buren <[email protected]> Date: Mon Mar 16 11:41:01 2009 -0500 env.c * add sanity checks diff --git a/env.c b/env.c index b7f338a..c565b74 100644 --- a/env.c +++ b/env.c @@ -45,9 +45,18 @@ extern void env_init(const int argc,const char **argv) env->themefile = strcmb(val,THEMEFILE); } } - if(env->menudir==NULL||env->themedir==NULL) +} + +extern void env_test(void) +{ + if(env->menudir==NULL||env->menufile==NULL) + { + printf("The menu directory must be specified with the \"-m\" flag.\n"); + exit(EXIT_FAILURE); + } + if(env->themedir==NULL||env->themefile==NULL) { - printf("The menu and theme directory must be specified.\n"); + printf("The theme directory must be specified with the \"-t\" flag.\n"); exit(EXIT_FAILURE); } } _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
