[PATCH 6/6] aristainetos2: Quote rescue_reason in rescueboot test
Heiko Schocher
hs at nabladev.com
Mon May 4 14:54:17 CEST 2026
Hello Simon,
On 03.05.26 22:49, Simon Glass wrote:
> The rescueboot script optionally runs a per-board rescue_reason hook
> with:
>
> if test -n ${rescue_reason}; then run rescue_reason; fi;
>
> The default state is "no rescue reason script", i.e. rescue_reason
> unset. The expression then expands to 'test -n' with no operand and
> relies on a U-Boot 'test' quirk that treats a missing operand as
> false to skip the run.
>
> Quote the variable so an unset rescue_reason expands to 'test -n ""'
> and the emptiness check is explicit.
>
> Fixes: 8b0619579b22 ("cmd: test: fix handling of single-argument form of test")
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> include/configs/aristainetos2.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks!
Reviewed-by: Heiko Schocher <hs at nabladev.com>
bye,
Heiko
--
Nabla Software Engineering
HRB 40522 Augsburg
Phone: +49 821 45592596
E-Mail: office at nabladev.com
Geschäftsführer : Stefano Babic
More information about the U-Boot
mailing list