logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>
commit: 9afe93298caa0cf66f8ab1336de74da2f9a874a0
parent f4c1b488d6a5bc91ca394c15fcabf9e7ff5b00e9
Author: fosslinux <fosslinux@aussies.space>
Date:   Wed, 27 Dec 2023 23:10:54 +0000

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

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

Diffstat:

Mseed/script-generator.c6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/seed/script-generator.c b/seed/script-generator.c @@ -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); }