mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-22 11:06:32 +01:00
script-generator: remove grammar that M2-Planet didn't support
This commit is contained in:
parent
6fcb8f4d4a
commit
71efe6bf82
1 changed files with 8 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue