From f0895177e7f85c1ad194b3aa0e4b892b54434fe2 Mon Sep 17 00:00:00 2001 From: Andrew Wood Date: Tue, 14 Oct 2025 22:11:40 +0100 Subject: [PATCH] Remove comment lines from the lab-hosts config when reading it. --- docs/test-on-vm-lab.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/test-on-vm-lab.sh b/docs/test-on-vm-lab.sh index c7beed2..934c6af 100755 --- a/docs/test-on-vm-lab.sh +++ b/docs/test-on-vm-lab.sh @@ -140,7 +140,7 @@ if test "$1" = "--testRunner"; then exit 1 fi -labHosts="$(cat ~/.config/lab-hosts 2>/dev/null)" +labHosts="$(grep -v '^#' ~/.config/lab-hosts 2>/dev/null)" workDir=$(mktemp -d) || exit 1 trap 'rm -rf "${workDir}"' EXIT