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() {
|
function Get-Entrypoint() {
|
||||||
$stackTrace = Get-PSCallStack
|
$trace = Get-PSCallStack
|
||||||
$call = $stackTrace[$stackTrace.Count - 1];
|
$call = $trace[$trace.Count - 1];
|
||||||
|
|
||||||
if ($null -ne $call.ScriptName) {
|
if ($null -ne $call.ScriptName) {
|
||||||
return $call.ScriptName;
|
return $call.ScriptName;
|
||||||
|
|
Loading…
Reference in a new issue