script-generator: remove grammar that M2-Planet didn't support

This commit is contained in:
vxtls 2026-02-18 14:47:18 -05:00
parent 6fcb8f4d4a
commit 71efe6bf82

View file

@ -572,7 +572,10 @@ void generate(Directive *directives) {
* Default /steps manifests start in kaem.
* Alternative step roots (for example /steps-guix) start in bash.
*/
int bash_build = (strcmp(steps_root, "/steps") == 0) ? 0 : 2;
int bash_build = 0;
if (strcmp(steps_root, "/steps") != 0) {
bash_build = 2;
}
FILE *out = start_script(counter, bash_build);
counter += 1;
@ -677,7 +680,10 @@ void main(int argc, char **argv) {
exit(1);
}
steps_root = dirname_from_path(argv[1]);
config_root = (argc == 3) ? argv[2] : steps_root;
config_root = steps_root;
if (argc == 3) {
config_root = argv[2];
}
Directive *directives = tokenizer(in);
fclose(in);
load_config();