From e4e9dd41916ead407f5b90e94fc34f2f7ffbe342 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 21 Mar 2024 00:29:38 +0100 Subject: [PATCH] Prevent PowerShell variable name collision --- scripts/Windows/Scripts/Entrypoints.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Windows/Scripts/Entrypoints.ps1 b/scripts/Windows/Scripts/Entrypoints.ps1 index fc4c3b04..ed2cfcc5 100644 --- a/scripts/Windows/Scripts/Entrypoints.ps1 +++ b/scripts/Windows/Scripts/Entrypoints.ps1 @@ -1,6 +1,6 @@ function Get-Entrypoint() { - $stackTrace = Get-PSCallStack - $call = $stackTrace[$stackTrace.Count - 1]; + $trace = Get-PSCallStack + $call = $trace[$trace.Count - 1]; if ($null -ne $call.ScriptName) { return $call.ScriptName;