logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>
commit: 071f6c2d40348af1706b4d666100aed2683bfe82
parent 34e4bf9bcc2a5fed10c0e2f204a55cb5a63000fb
Author: Gábor Stefanik <netrolller.3d@gmail.com>
Date:   Wed, 24 Jan 2024 10:06:39 +0100

Fix typo in script-generator causing wrong traps in new Bash

When renaming using_bash to bash_build, I accidentally removed the
+ sign from the assignment, causing bash_build > 1 to never match,
resulting in old-style Ctrl+D traps even in the new Bash.

This patch restores the intended += behavior.

Diffstat:

Mseed/script-generator.c2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/seed/script-generator.c b/seed/script-generator.c @@ -557,7 +557,7 @@ void generate(Directive *directives) { */ generate_preseed_jump(counter); } - bash_build = 1; + bash_build += 1; /* Create call to new script. */ output_call_script(out, "", int2str(counter, 10, 0), bash_build, 0); fclose(out);