(#9400 P1a) lib/functions/image/initrd.sh: convert [ ] to [[ ]]

Replace POSIX `[ ]` with bash `[[ ]]` on one string comparison.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Igor Velkov 2026-03-02 05:03:26 +02:00 committed by Igor
parent 934575ee35
commit b9bf4489a8

View File

@ -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