File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,20 +14,20 @@ while ($true) {
14
14
# executing shell to be named "sshd", otherwise it fails. See:
15
15
# https://github.com/microsoft/vscode-remote-release/issues/5699
16
16
$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} "
18
18
Invoke-WebRequest - Uri " ${BINARY_URL} " - OutFile $env: TEMP \sshd.exe
19
19
break
20
20
} catch {
21
- Write-Output " error: unhandled exception fetching coder agent:"
21
+ Write-Output " $ ( Get-Date ) error: unhandled exception fetching coder agent:"
22
22
Write-Output $_
23
- Write-Output " trying again in 30 seconds..."
23
+ Write-Output " $ ( Get-Date ) trying again in 30 seconds..."
24
24
Start-Sleep - Seconds 30
25
25
}
26
26
}
27
27
28
28
# Check if running in a Windows container
29
29
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..."
31
31
} else {
32
32
Set-MpPreference - DisableRealtimeMonitoring $true - ExclusionPath $env: TEMP \sshd.exe
33
33
}
You can’t perform that action at this time.
0 commit comments