Skip to content

Commit d7697a4

Browse files
author
James Brundage
committed
'until' keyword: Marking as keyword for interactive use (re #263)
1 parent e054961 commit d7697a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Transpilers/Keywords/Until.psx.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
)
6565
)
6666
})]
67+
[Reflection.AssemblyMetadata("PipeScript.Keyword",$true)]
6768
param(
6869
[Parameter(Mandatory,ValueFromPipeline,ParameterSetName='CommandAst')]
6970
[Management.Automation.Language.CommandAst]
@@ -130,7 +131,7 @@ process {
130131
}
131132
else {
132133
$beforeLoop = "$untilVar = [DateTime]::Now"
133-
$condition = 'Get-Event -SourceIdentifier ' + "'$condition'" + " -ErrorAction Ignore | Where-Object TimeGenerated -ge $untilVar"
134+
$condition = '(Get-Event -SourceIdentifier ' + "'$condition'" + " -ErrorAction Ignore | Where-Object TimeGenerated -ge $untilVar)"
134135
}
135136
}
136137

0 commit comments

Comments
 (0)