Skip to content

Commit 88017fd

Browse files
Mirko Haaserclaude
andcommitted
Fix empty DOCKER_VOLUMES causing invalid volume spec
Trim whitespace before checking DOCKER_VOLUMES to prevent passing empty --docker-volumes flag when the env var is set but blank. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5be7e43 commit 88017fd

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

entrypoint.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,10 @@ register_runner() {
6363
args+=(--docker-privileged)
6464
fi
6565

66-
if [[ -n "${DOCKER_VOLUMES:-}" ]]; then
67-
IFS=',' read -ra vols <<< "$DOCKER_VOLUMES"
66+
local docker_volumes="${DOCKER_VOLUMES:-}"
67+
docker_volumes="$(echo "$docker_volumes" | xargs)" # trim whitespace
68+
if [[ -n "$docker_volumes" ]]; then
69+
IFS=',' read -ra vols <<< "$docker_volumes"
6870
for vol in "${vols[@]}"; do
6971
vol="$(echo "$vol" | xargs)" # trim whitespace
7072
[[ -n "$vol" ]] && args+=(--docker-volumes "$vol")

0 commit comments

Comments
 (0)