Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf2137a4

Browse files
committed
chore: add date information to windows startup logs
1 parent08451ce commitf2137a4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎provisionersdk/scripts/bootstrap_windows.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ while ($true) {
1414
# executing shell to be named "sshd", otherwise it fails. See:
1515
# https://github.com/microsoft/vscode-remote-release/issues/5699
1616
$BINARY_URL="${ACCESS_URL}/bin/coder-windows-${ARCH}.exe"
17-
Write-Output"Fetching coder agent from${BINARY_URL}"
17+
Write-Output"$(Get-Date)Fetching coder agent from${BINARY_URL}"
1818
Invoke-WebRequest-Uri"${BINARY_URL}"-OutFile$env:TEMP\sshd.exe
1919
break
2020
}catch {
21-
Write-Output"error: unhandled exception fetching coder agent:"
21+
Write-Output"$(Get-Date)error: unhandled exception fetching coder agent:"
2222
Write-Output$_
23-
Write-Output"trying again in 30 seconds..."
23+
Write-Output"$(Get-Date)trying again in 30 seconds..."
2424
Start-Sleep-Seconds30
2525
}
2626
}
2727

2828
# Check if running in a Windows container
2929
if (-not (Get-Command'Set-MpPreference'-ErrorAction SilentlyContinue)) {
30-
Write-Output"Set-MpPreference not available, skipping..."
30+
Write-Output"$(Get-Date)Set-MpPreference not available, skipping..."
3131
}else {
3232
Set-MpPreference-DisableRealtimeMonitoring$true-ExclusionPath$env:TEMP\sshd.exe
3333
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp