File tree 4 files changed +6
-8
lines changed
Basic/Local-ActionPreference
4 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ $Major = $PSVersionTable.PSVersion.Major
12
12
13
13
# bootstrap
14
14
if ($MyInvocation.ScriptName -notlike ' *Invoke-Build.ps1' ) {
15
- $InvokeBuildVersion = ' 5.10.1 '
16
- $ErrorActionPreference = ' Stop '
15
+ $InvokeBuildVersion = ' 5.11.0 '
16
+ $ErrorActionPreference = 1
17
17
$PSScriptRoot = Split-Path $MyInvocation.MyCommand.Definition
18
18
$ib = " $PSScriptRoot /packages/InvokeBuild/$InvokeBuildVersion /Invoke-Build.ps1"
19
19
@@ -27,8 +27,7 @@ if ($MyInvocation.ScriptName -notlike '*Invoke-Build.ps1') {
27
27
Save-Script Invoke-PowerShell - Path " $PSScriptRoot /packages" - Force
28
28
}
29
29
30
- & $ib - Task $Tasks - File $MyInvocation.MyCommand.Path @PSBoundParameters
31
- return
30
+ return & $ib - Task $Tasks - File $MyInvocation.MyCommand.Path @PSBoundParameters
32
31
}
33
32
34
33
# saved script alias
Original file line number Diff line number Diff line change @@ -22,8 +22,7 @@ function Invoke-Script($Path) {
22
22
23
23
task Test-2 - 1 - invalid- error- effect {
24
24
($r = Invoke-Script Test-2 - 1 - invalid- error- effect.ps1)
25
- # ! `*Message`: `*` for PS 7.3.0, probably some esc sequence
26
- assert ($r -clike ' Test-Preference : *Message*Done.' )
25
+ assert ($r -clike ' *Test-Preference*Message*Done.*' )
27
26
}
28
27
29
28
task Test-2 - 2 - invalid- warning- effect {
Original file line number Diff line number Diff line change 1
- Copyright (c) 2015-2023 Roman Kuzmin
1
+ Copyright (c) 2015-2024 Roman Kuzmin
2
2
3
3
Apache License
4
4
Version 2.0, January 2004
Original file line number Diff line number Diff line change 1
-
1
+
2
2
[ TESTS ] : ./TESTS.md
3
3
[ Invoke-PowerShell.ps1 ] : https://www.powershellgallery.com/packages/Invoke-PowerShell
4
4
You can’t perform that action at this time.
0 commit comments