Re: [PATCH] script/execute: Don't let trailing blank lines determine the return code

2025-02-28 Thread Daniel Kiper
On Mon, Dec 30, 2024 at 10:52:23AM +, James Le Cuirot wrote: > From: James Le Cuirot > > grub_script_execute_sourcecode() parses and executes code one line at a > time, updating the return code each time because only the last line > determines the final status. However, trailing new lines were

[PATCH] script/execute: Don't let trailing blank lines determine the return code

2024-12-30 Thread James Le Cuirot
From: James Le Cuirot grub_script_execute_sourcecode() parses and executes code one line at a time, updating the return code each time because only the last line determines the final status. However, trailing new lines were also executed, masking any failure on the previous line. Fix this by only