Determine software script name properly
This commit is contained in:
parent
48f0097c45
commit
40a422bb8e
1 changed files with 4 additions and 4 deletions
|
@ -16,11 +16,11 @@ $null = New-Module {
|
||||||
[hashtable] $Arguments
|
[hashtable] $Arguments
|
||||||
)
|
)
|
||||||
|
|
||||||
Start-Operation {
|
|
||||||
if (-not $Name) {
|
if (-not $Name) {
|
||||||
$Name = Split-Path -Leaf (Split-Path -Parent ((Get-PSCallStack)[1].ScriptName));
|
$Name = Split-Path -Leaf (Split-Path -Parent ((Get-PSCallStack)[1].ScriptName));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Start-Operation {
|
||||||
if ($null -ne $Name) {
|
if ($null -ne $Name) {
|
||||||
$Name = "``$Name``";
|
$Name = "``$Name``";
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue