From 7fa6483d84443b132d036c5a4cc98fc0e431e18e Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Sat, 11 Mar 2023 13:39:40 -0600 Subject: [PATCH] fix: allow the `BINARY_DIR` to be configured in the agent script (#6567) --- provisionersdk/scripts/bootstrap_linux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provisionersdk/scripts/bootstrap_linux.sh b/provisionersdk/scripts/bootstrap_linux.sh index ba4ecb11b8..abd91d163d 100644 --- a/provisionersdk/scripts/bootstrap_linux.sh +++ b/provisionersdk/scripts/bootstrap_linux.sh @@ -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"