From eaae091e36d4709e051d6e336645002d5e53d980 Mon Sep 17 00:00:00 2001 From: Rephl3x Date: Thu, 29 Jan 2026 10:18:28 +1300 Subject: [PATCH] Avoid System.Management.Automation.Internal.Host.InternalHost variable collision --- certy.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/certy.ps1 b/certy.ps1 index f26a7ed..ddf5a51 100644 --- a/certy.ps1 +++ b/certy.ps1 @@ -75,8 +75,8 @@ function Get-CommonZoneFromHosts { if (-not $fqdnHosts -or $fqdnHosts.Count -eq 0) { return "" } $commonSuffix = $null - foreach ($host in $fqdnHosts) { - $clean = $host.Trim().TrimEnd(".") + foreach ($hostName in $fqdnHosts) { + $clean = $hostName.Trim().TrimEnd(".") $labels = $clean -split "\." if ($labels.Count -lt 2) { continue } $zoneLabels = $labels[1..($labels.Count - 1)]