Skip to content

Commit 104a3c6

Browse files
authored
fix: Prefix tmp directory for agent download with "coder" (#1038)
This makes it easier to find the temporary dir for the coder binary.
1 parent 148e7cd commit 104a3c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

provisionersdk/agent.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Start-Process -FilePath $env:TEMP\sshd.exe -ArgumentList "agent" -PassThru
2323
"amd64": `
2424
#!/usr/bin/env sh
2525
set -eu pipefail
26-
export BINARY_LOCATION=$(mktemp -d)/coder
26+
export BINARY_LOCATION=$(mktemp -d -t tmp.coderXXXXX)/coder
2727
curl -fsSL ${ACCESS_URL}bin/coder-linux-amd64 -o $BINARY_LOCATION
2828
chmod +x $BINARY_LOCATION
2929
export CODER_AUTH="${AUTH_TYPE}"
@@ -35,7 +35,7 @@ exec $BINARY_LOCATION agent
3535
"amd64": `
3636
#!/usr/bin/env sh
3737
set -eu pipefail
38-
export BINARY_LOCATION=$(mktemp -d)/coder
38+
export BINARY_LOCATION=$(mktemp -d -t tmp.coderXXXXX)/coder
3939
curl -fsSL ${ACCESS_URL}bin/coder-darwin-amd64 -o $BINARY_LOCATION
4040
chmod +x $BINARY_LOCATION
4141
export CODER_AUTH="${AUTH_TYPE}"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy