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

This commit is contained in:
Kyle Carberry
2023-03-11 19:39:40 +00:00
committed by GitHub
parent 37c859ec4c
commit 7fa6483d84
+1 -1
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"