mirror of
https://github.com/coder/coder.git
synced 2025-07-23 21:32:07 +00:00
fix: Use double quotes for trap
signal (#2956)
Frequently callers will wrap our shell script in `sh -c ''`. Having single quotes on our `trap` led to a syntax error when doing this.
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env sh
|
||||
set -eux pipefail
|
||||
trap 'echo === Agent script exited with non-zero code. Sleeping 24h to preserve logs... && sleep 86400' EXIT
|
||||
trap "echo === Agent script exited with non-zero code. Sleeping 24h to preserve logs... && sleep 86400" EXIT
|
||||
BINARY_DIR=$(mktemp -d -t coder.XXXXXX)
|
||||
BINARY_NAME=coder
|
||||
cd "$BINARY_DIR"
|
||||
|
Reference in New Issue
Block a user