Skip to content

Commit

Permalink
Fixed a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarafian committed Dec 9, 2016
1 parent c8857b2 commit f836dc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Examples/Cmdlets/Get-ISHBootstrapperContextValue.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ Function Get-ISHBootstrapperContextValue
$value = Invoke-Expression "`$data.$ValuePath";
if ($value -eq $null)
{
if($PSCommandPath.ContainsKey('DefaultValue'))
if($MyInvocation.BoundParameters.ContainsKey('DefaultValue'))
{
$value=$DefaultValue
}
elseif($PSCommandPath.ContainsKey('Invoke'))
elseif($MyInvocation.BoundParameters.ContainsKey('Invoke'))
{
}
else
Expand Down

0 comments on commit f836dc3

Please sign in to comment.