Prepare the retained passive Windows echo build and time-profile successor
Rust development slice / linux (push) Failing after 7s
Rust development slice / linux (push) Failing after 7s
This commit is contained in:
@@ -5,12 +5,14 @@
|
||||
param([Parameter(Mandatory)][ValidateSet('Read','Resume')][string]$Action)
|
||||
$ErrorActionPreference='Stop'
|
||||
$base=Join-Path $PSScriptRoot 'Set-PassiveJobPair.ps1'
|
||||
$baseHash='c54e36b32a2fcccb072f2cca52a38b6c4da31755d86205599016c5d180f5cec4'
|
||||
$baseHash='723bd03d809191455f5909644f518ae2bebabbbb9ce6399f3007cb4cc0bc9341'
|
||||
if ((Get-FileHash -LiteralPath $base).Hash -ne $baseHash) { throw 'Original passive-pair controller differs' }
|
||||
$text=[IO.File]::ReadAllText($base)
|
||||
$i=$text.IndexOf("`n`$originalCase = ",[StringComparison]::Ordinal)
|
||||
$j=$text.IndexOf("`nif (`$Mode -eq 'Read') {",[StringComparison]::Ordinal)
|
||||
if ($i -le 0 -or $j -le $i) { throw 'Original fixed declaration boundary' }
|
||||
$Mode='Read'
|
||||
$EchoPassive=$false
|
||||
. ([scriptblock]::Create($text.Substring($i,$j-$i)))
|
||||
Add-Type -TypeDefinition @'
|
||||
using System;
|
||||
|
||||
Reference in New Issue
Block a user