script-generator: fix env SRCDIR to jump to steps-guix folder and do the build

This commit is contained in:
vxtls 2026-02-19 08:58:06 -05:00
parent 71efe6bf82
commit 6e193983ce

View file

@ -455,7 +455,7 @@ FILE *start_script(int id, int bash_build) {
if (bash_build) {
char *bootstrap_file = config_path("bootstrap.cfg");
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);
if (strcmp(get_var("INTERACTIVE"), "True") == 0) {
if (bash_build != 1) {
@ -478,6 +478,9 @@ FILE *start_script(int id, int bash_build) {
fputs(". ", out);
fputs(env_file, out);
fputs("\n", out);
fputs("SRCDIR=", out);
fputs(steps_root, out);
fputs("\n", out);
fputs(". ", out);
fputs(helpers_file, out);
fputs("\n", out);