mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-03 17:53:39 +00:00
refactor: finish Docker diagnostic command lookup cleanup (#147396)
This commit is contained in:
parent
a2d7df0cfd
commit
3aa044cdce
1 changed files with 2 additions and 6 deletions
|
|
@ -96,12 +96,8 @@ docker_e2e_docker_run_with_resource_diagnostics() {
|
|||
local stderr_fifo="${diagnostic_dir}/stderr.pipe"
|
||||
local capture_fifo="${diagnostic_dir}/capture.pipe"
|
||||
local mkfifo_bin=""
|
||||
if command -v mkfifo >/dev/null 2>&1; then
|
||||
mkfifo_bin="$(command -v mkfifo)"
|
||||
elif [ -x /usr/bin/mkfifo ]; then
|
||||
mkfifo_bin=/usr/bin/mkfifo
|
||||
fi
|
||||
if [ -z "$mkfifo_bin" ] || ! "$mkfifo_bin" "$stderr_fifo" "$capture_fifo"; then
|
||||
if ! mkfifo_bin="$(docker_e2e_diagnostic_bin mkfifo)" ||
|
||||
! "$mkfifo_bin" "$stderr_fifo" "$capture_fifo"; then
|
||||
docker_e2e_remove_diagnostic_dir "$diagnostic_dir"
|
||||
docker_e2e_timeout_cmd \
|
||||
"$timeout_value" \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue