We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a159c52 commit 005910fCopy full SHA for 005910f
1 file changed
Commands/PipeScript/Import-PipeScript.ps1
@@ -73,6 +73,8 @@ function Import-PipeScript
73
if ($invokePipeScriptOutput -is [IO.FileInfo] -and
74
$invokePipeScriptOutput.Extension -eq '.ps1') {
75
. $invokePipeScriptOutput.Fullname
76
+ } elseif ($invokePipeScriptOutput -is [ScriptBlock]) {
77
+ . $invokePipeScriptOutput
78
} else {
79
$invokePipeScriptOutput
80
}
0 commit comments