File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 244
244
}
245
245
})
246
246
247
- # If the command was not a source generator
248
- if ($Command.Source -notmatch $IsTemplateFile ) {
249
- # we'll try to invoke it.
250
-
251
- # If we have an interpreter for that language
252
- if ($matchingPipeScriptLanguage.Interpreter -or $matchingPipeScriptLanguage.Runner ) {
253
- # we'll want to run it.
254
-
247
+ # If the command was not a source generator we'll try to invoke it.
248
+ if ($Command.Source -notmatch $IsTemplateFile ) {
249
+ # If we have an interpreter for that language we'll want to run it.
250
+ if ($matchingPipeScriptLanguage.Interpreter -or $matchingPipeScriptLanguage.Runner ) {
255
251
# Rather than duplicate a lot of code, the easiest way to do this is simply to alias the full path
256
252
Set-Alias $command.Source Invoke-Interpreter
257
253
# and reset the value of $Command
258
254
$command = $ExecutionContext.SessionState.InvokeCommand.GetCommand ($command.Source , ' Alias' )
259
- # (the alias will only exist locally, and not exist when Invoke-PipeScript returns)
255
+ # (the alias will only exist locally, and not exist when Invoke-PipeScript returns)
260
256
}
261
257
262
258
$CommandStart = [DateTime ]::now
You can’t perform that action at this time.
0 commit comments