From 1f5b52b439b444e7e8bb3c507579796395aa26cf Mon Sep 17 00:00:00 2001 From: pblivingston <71585805+pblivingston@users.noreply.github.com> Date: Mon, 2 Mar 2026 06:55:55 -0500 Subject: [PATCH] improve speed of Select-String device config is at the very top of the xml, so this should be much faster --- lib/io.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/io.ps1 b/lib/io.ps1 index f767900..5592c94 100644 --- a/lib/io.ps1 +++ b/lib/io.ps1 @@ -125,7 +125,7 @@ class IODevice : IRemote { $newTime = (Get-Item $path).LastWriteTime if ($newTime -gt $oldTime) { try { - $line = Get-Content $path | Select-String -Pattern "<$($this.kindOfDevice)Dev index='$($this.index + 1)'" + $line = Get-Content $path | Select-String -Pattern "<$($this.kindOfDevice)Dev index='$($this.index + 1)'" -List if ($line) { break } } catch {}