Skip to content

Commit 7fa6483

Browse files
authored
fix: allow the BINARY_DIR to be configured in the agent script (coder#6567)
1 parent 37c859e commit 7fa6483

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

provisionersdk/scripts/bootstrap_linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ waitonexit() {
88
sleep 86400
99
}
1010
trap waitonexit EXIT
11-
BINARY_DIR=$(mktemp -d -t coder.XXXXXX)
11+
BINARY_DIR="${BINARY_DIR:-$(mktemp -d -t coder.XXXXXX)}"
1212
BINARY_NAME=coder
1313
BINARY_URL=${ACCESS_URL}bin/coder-linux-${ARCH}
1414
cd "$BINARY_DIR"

0 commit comments

Comments
 (0)