Avoid double slash (`//`) in generated scripts

e.g., put `bash /steps/1.sh` instead of `bash /steps//1.sh`
This commit is contained in:
Eduardo Sánchez Muñoz 2023-12-27 12:32:55 +01:00
parent 9179f4bd01
commit fc6aee0c5f
1 changed files with 4 additions and 2 deletions

View File

@ -461,8 +461,10 @@ void output_call_script(FILE *out, char *type, char *name, int using_bash, int s
fputs("kaem --file ", out);
}
fputs("/steps/", out);
fputs(type, out);
fputs("/", out);
if (strlen(type) != 0) {
fputs(type, out);
fputs("/", out);
}
fputs(name, out);
fputs(".sh\n", out);
}