Skip to content

Commit

Permalink
Run shell before the start of the build
Browse files Browse the repository at this point in the history
  • Loading branch information
koko-ng committed Jan 2, 2023
1 parent e384833 commit 8a2f8e6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/builder-module.c
Original file line number Diff line number Diff line change
Expand Up @@ -1648,6 +1648,13 @@ builder_module_build_helper (BuilderModule *self,
}
}

if (run_shell)
{
if (!shell (app_dir, self->name, context, source_dir, build_dir_relative, build_args, env, error))
return FALSE;
return TRUE;
}

if (configure_file)
has_configure = g_file_query_exists (configure_file, NULL);

Expand Down Expand Up @@ -1848,13 +1855,6 @@ builder_module_build_helper (BuilderModule *self,
make_j = g_strdup ("-j1");
}

if (run_shell)
{
if (!shell (app_dir, self->name, context, source_dir, build_dir_relative, build_args, env, error))
return FALSE;
return TRUE;
}

/* Build and install */

builder_set_term_title (_("Installing %s"), self->name);
Expand Down

0 comments on commit 8a2f8e6

Please sign in to comment.