- Notifications
You must be signed in to change notification settings - Fork928
fix: Add test for wrapping init script with single quotes#2979
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
This ensures our initialization script works with single uotes.
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Sleep for a while in case the underlying provider deletes the resource on error. | ||
trap { | ||
Write-Error"=== Agent script exited with non-zero code. Sleeping 24h to preserve logs..." | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I'm curious how folks would be using | ||
Start-Sleep -Seconds 86400 | ||
} | ||
@@ -25,7 +25,7 @@ while ($true) { | ||
} | ||
} | ||
# If the below fails, retrying probablywill not help. | ||
Set-MpPreference -DisableRealtimeMonitoring $true -ExclusionPath $env:TEMP\sshd.exe | ||
$env:CODER_AGENT_AUTH = "${AUTH_TYPE}" | ||
$env:CODER_AGENT_URL = "${ACCESS_URL}" | ||