Skip to content

Commit ea7967d

Browse files
committed
build: buffer in variable to avoid broken pipe
1 parent 8176424 commit ea7967d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/make/lib/ls/pkgs/lib.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@ list-lib-pkgs:
7373
# make list-random-lib-pkgs RANDOM_SELECTION_SIZE=10
7474
#/
7575
list-random-lib-pkgs:
76-
$(QUIET) make list-lib-pkgs | shuf -n $(RANDOM_SELECTION_SIZE)
76+
$(QUIET) output=$$(make list-lib-pkgs); echo "$$output" | shuf -n $(RANDOM_SELECTION_SIZE)
7777

7878
.PHONY: list-random-lib-pkgs

0 commit comments

Comments
 (0)