mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
fix(setup): kill timed image pulls when supported
This commit is contained in:
@@ -37,7 +37,11 @@ run_docker_build() {
|
||||
run_docker_pull() {
|
||||
local image="$1"
|
||||
if command -v timeout >/dev/null 2>&1; then
|
||||
timeout "$DOCKER_PULL_TIMEOUT" docker pull "$image"
|
||||
if timeout --kill-after=1s 1s true >/dev/null 2>&1; then
|
||||
timeout --kill-after=30s "$DOCKER_PULL_TIMEOUT" docker pull "$image"
|
||||
else
|
||||
timeout "$DOCKER_PULL_TIMEOUT" docker pull "$image"
|
||||
fi
|
||||
return
|
||||
fi
|
||||
docker pull "$image"
|
||||
|
||||
Reference in New Issue
Block a user