fix: allow the `BINARY_DIR` to be configured in the agent script (#6567)

This commit is contained in:
Kyle Carberry 2023-03-11 13:39:40 -06:00 committed by GitHub
parent 37c859ec4c
commit 7fa6483d84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ waitonexit() {
sleep 86400
}
trap waitonexit EXIT
BINARY_DIR=$(mktemp -d -t coder.XXXXXX)
BINARY_DIR="${BINARY_DIR:-$(mktemp -d -t coder.XXXXXX)}"
BINARY_NAME=coder
BINARY_URL=${ACCESS_URL}bin/coder-linux-${ARCH}
cd "$BINARY_DIR"