mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Fix text processing in bazel build command.
The extraction of the build target was overfitted before, making build_cmd fail in some environments. PiperOrigin-RevId: 335916651
This commit is contained in:
+3
-2
@@ -152,8 +152,9 @@ build_cmd = docker exec $(FULL_DOCKER_EXEC_OPTIONS) $(DOCKER_NAME) sh -o pipefai
|
||||
|
||||
build_paths = $(build_cmd) 2>&1 \
|
||||
| tee /proc/self/fd/2 \
|
||||
| grep -E "^ bazel-bin/" \
|
||||
| tr -d '\r' \
|
||||
| grep " bazel-bin/" \
|
||||
| sed "s/ /\n/g" \
|
||||
| strings -n 10 \
|
||||
| awk '{$$1=$$1};1' \
|
||||
| xargs -n 1 -I {} sh -c "$(1)"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user