Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdde51f1

Browse files
authored
fix: Force trap to always succeed due to incompatibility (#2953)
There are some instances of Linux that don't support trap. We shouldignore the failure in those cases.
1 parent5ee112b commitdde51f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎provisionersdk/scripts/bootstrap_linux.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
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+
# Not all instances of "trap" support ERR SIGNAL_SPEC. See: https://github.com/bmizerany/roundup/issues/25
4+
trap'echo === Agent script exited with non-zero code. Sleeping 24h to preserve logs... && sleep 86400' EXIT||true
45
BINARY_DIR=$(mktemp -d -t coder.XXXXXX)
56
BINARY_NAME=coder
67
BINARY_URL=${ACCESS_URL}bin/coder-linux-${ARCH}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp