From 934575ee35d3a2f168e27417bdb5d398c7c2fd20 Mon Sep 17 00:00:00 2001 From: Igor Velkov <325961+iav@users.noreply.github.com> Date: Mon, 2 Mar 2026 05:03:12 +0200 Subject: [PATCH] (#9400 P1a) lib/functions/rootfs/distro-agnostic.sh: convert [ ] to [[ ]] Replace two chained POSIX `[ ]` with a single bash `[[ ]]` using `&&` inside the double brackets. Co-Authored-By: Claude Sonnet 4.6 --- lib/functions/rootfs/distro-agnostic.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions/rootfs/distro-agnostic.sh b/lib/functions/rootfs/distro-agnostic.sh index 2302792a44..25ff64ea01 100644 --- a/lib/functions/rootfs/distro-agnostic.sh +++ b/lib/functions/rootfs/distro-agnostic.sh @@ -565,7 +565,7 @@ function install_distribution_agnostic() { VENDORPRETTYNAME="$VENDORPRETTYNAME" >> "${SDCARD}"/etc/armbian-image-release # DNS fix. package resolvconf is not available everywhere - if [ -d "${SDCARD}"/etc/resolvconf/resolv.conf.d ] && [ -n "$NAMESERVER" ]; then + if [[ -d "${SDCARD}/etc/resolvconf/resolv.conf.d" && -n "$NAMESERVER" ]]; then echo "nameserver $NAMESERVER" > "${SDCARD}"/etc/resolvconf/resolv.conf.d/head fi