diff --git a/seed/script-generator.c b/seed/script-generator.c index 62bce6ac..de887118 100644 --- a/seed/script-generator.c +++ b/seed/script-generator.c @@ -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();