mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-22 19:16:32 +01:00
script-generator: fix env SRCDIR to jump to steps-guix folder and do the build
This commit is contained in:
parent
71efe6bf82
commit
6e193983ce
1 changed files with 4 additions and 1 deletions
|
|
@ -455,7 +455,7 @@ FILE *start_script(int id, int bash_build) {
|
||||||
if (bash_build) {
|
if (bash_build) {
|
||||||
char *bootstrap_file = config_path("bootstrap.cfg");
|
char *bootstrap_file = config_path("bootstrap.cfg");
|
||||||
char *env_file = config_path("env");
|
char *env_file = config_path("env");
|
||||||
char *helpers_file = config_path("helpers.sh");
|
char *helpers_file = join_path(steps_root, "helpers.sh");
|
||||||
fputs("#!/bin/bash\n", out);
|
fputs("#!/bin/bash\n", out);
|
||||||
if (strcmp(get_var("INTERACTIVE"), "True") == 0) {
|
if (strcmp(get_var("INTERACTIVE"), "True") == 0) {
|
||||||
if (bash_build != 1) {
|
if (bash_build != 1) {
|
||||||
|
|
@ -478,6 +478,9 @@ FILE *start_script(int id, int bash_build) {
|
||||||
fputs(". ", out);
|
fputs(". ", out);
|
||||||
fputs(env_file, out);
|
fputs(env_file, out);
|
||||||
fputs("\n", out);
|
fputs("\n", out);
|
||||||
|
fputs("SRCDIR=", out);
|
||||||
|
fputs(steps_root, out);
|
||||||
|
fputs("\n", out);
|
||||||
fputs(". ", out);
|
fputs(". ", out);
|
||||||
fputs(helpers_file, out);
|
fputs(helpers_file, out);
|
||||||
fputs("\n", out);
|
fputs("\n", out);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue