From 8cb897856fc26a5ae806b9aafbf7516673e8cddf Mon Sep 17 00:00:00 2001 From: Igor Velkov <325961+iav@users.noreply.github.com> Date: Mon, 2 Mar 2026 05:05:48 +0200 Subject: [PATCH] (#9400 P1a) extensions/gxlimg.sh: convert [ ] to [[ ]] Replace POSIX `[ ]` with bash `[[ ]]` on two file existence checks. Co-Authored-By: Claude Sonnet 4.6 --- extensions/gxlimg.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/gxlimg.sh b/extensions/gxlimg.sh index e5a25ea41d..632c58dff1 100644 --- a/extensions/gxlimg.sh +++ b/extensions/gxlimg.sh @@ -60,7 +60,7 @@ function gxlimg_repack_fip_with_new_uboot() { -s raw-u-boot.bin \ "${EXTRACT_DIR}/bl33.enc" - if [ -e "${EXTRACT_DIR}/lpddr3_1d.fw" ]; then + if [[ -e "${EXTRACT_DIR}/lpddr3_1d.fw" ]]; then run_host_command_logged gxlimg \ -t fip \ --bl2 "${EXTRACT_DIR}/bl2.sign" \ @@ -101,7 +101,7 @@ function gxlimg_repack_fip_with_new_uboot() { ;; esac - if [ ! -s u-boot.bin ]; then + if [[ ! -s u-boot.bin ]]; then exit_with_error "FIP repack produced empty u-boot.bin" fi }