Prevent PowerShell variable name collision
This commit is contained in:
parent
181a82fd24
commit
e4e9dd4191
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue