Skip to content

Commit 9586595

Browse files
committed
quick
1 parent 1b9368f commit 9586595

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

provisionersdk/scripts/bootstrap_linux.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/usr/bin/env sh
22
set -eux pipefail
3-
trap 'echo === Agent script exited with non-zero code. Sleeping 24h to preserve logs... && sleep 86400' EXIT
3+
waitonexit() {
4+
echo '=== Agent script exited with non-zero code. Sleeping 24h to preserve logs...'
5+
sleep 86400
6+
}
7+
trap waitonexit EXIT
48
BINARY_DIR=$(mktemp -d -t coder.XXXXXX)
59
BINARY_NAME=coder
610
BINARY_URL=${ACCESS_URL}bin/coder-linux-${ARCH}

0 commit comments

Comments
 (0)