Merge pull request #373 from eduardosm/avoid-double-slash

Avoid double slash (`//`) in generated scripts
This commit is contained in:
fosslinux 2023-12-27 23:10:54 +00:00 committed by GitHub
commit 9afe93298c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);
}