Prevent PowerShell variable name collision

This commit is contained in:
Manuel Thalmann 2024-03-21 00:29:38 +01:00
parent 181a82fd24
commit e4e9dd4191

View file

@ -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;