Skip to content

Commit

Permalink
1.1.1.4 更新
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceTimee committed Sep 14, 2024
1 parent ae0d018 commit 17b3037
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Console-HostChecker.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
param ([switch] $trans, [switch] $loop)
param ([string] $trans, [switch] $loop)

do {
if ($trans) { Start-Transcript (Join-Path $PSScriptRoot "Trans.log") -UseMinimalHeader | Out-Null }
if (Test-Path $trans) { Start-Transcript (Join-Path $PSScriptRoot "Trans.log") -UseMinimalHeader | Out-Null }

if ($PSEdition -ne "Core") {
Write-Host "Console HostChecker 需要在 PowerShell 7.x 环境运行"
Expand All @@ -14,7 +14,7 @@ do {
[App]::new().Main()
}

if ($trans) { Stop-Transcript }
if (Test-Path $trans) { Stop-Transcript }
if ($loop) { Start-Sleep 60 }
} while ($loop)

Expand Down

0 comments on commit 17b3037

Please sign in to comment.