cmdline: Fix create for out-of-project creation

This commit is contained in:
Andy Williams 2017-05-28 19:09:35 +01:00
parent 6239499fed
commit 0bc52e975e
1 changed files with 7 additions and 7 deletions

View File

@ -157,13 +157,6 @@ main(int argc, char **argv)
getcwd(path, PATH_MAX);
edi_project_set(path);
if (!edi_builder_can_build())
{
fprintf(stderr, "Cowardly refusing to build unknown project type.\n");
ecore_shutdown();
goto exit;
}
if (args < argc)
build_type = argv[args];
if (!build_type)
@ -184,6 +177,13 @@ main(int argc, char **argv)
goto end;
}
if (!edi_builder_can_build())
{
fprintf(stderr, "Cowardly refusing to build unknown project type.\n");
ecore_shutdown();
goto exit;
}
provider = edi_build_provider_for_project_get();
ecore_event_handler_add(ECORE_EXE_EVENT_DATA, _exe_data, NULL);