From b9bf4489a8d1257fefe975926f5660aba30b7440 Mon Sep 17 00:00:00 2001 From: Igor Velkov <325961+iav@users.noreply.github.com> Date: Mon, 2 Mar 2026 05:03:26 +0200 Subject: [PATCH] (#9400 P1a) lib/functions/image/initrd.sh: convert [ ] to [[ ]] Replace POSIX `[ ]` with bash `[[ ]]` on one string comparison. Co-Authored-By: Claude Sonnet 4.6 --- lib/functions/image/initrd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions/image/initrd.sh b/lib/functions/image/initrd.sh index a189a176fc..56204c24b1 100644 --- a/lib/functions/image/initrd.sh +++ b/lib/functions/image/initrd.sh @@ -32,7 +32,7 @@ update_initramfs() { # disabled; if debugging, we want the full output, even if it is huge. # logging_filter="2>&1 | { grep --line-buffered -v -e '.xz' -e 'ORDER ignored' -e 'Adding binary ' -e 'Adding module ' -e 'Adding firmware ' -e 'microcode bundle' -e ', pf_mask' || true ; }" fi - if [ "$target_dir" != "" ]; then + if [[ "$target_dir" != "" ]]; then initrd_kern_ver="$(basename "$target_dir")" initrd_file="${chroot_target}/boot/initrd.img-${initrd_kern_ver}" update_initramfs_cmd="TMPDIR=/tmp update-initramfs -u${initrd_debug} -k ${initrd_kern_ver}" # @TODO: why? TMPDIR=/tmp