Skip to content

Commit 3c6795d

Browse files
XAMPPRockybnjbvr
authored andcommitted
Fixed broken pipe race condition in ensure_installed
1 parent c0274ec commit 3c6795d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cranelift/test-all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ ensure_installed() {
5555
program="$1"
5656
toolchain="${2:-stable}"
5757
if has_toolchain $toolchain; then
58-
if cargo +$toolchain install --list | grep -q $program; then
58+
if grep -q $program <(cargo +$toolchain install --list); then
5959
echo "$program found"
6060
else
6161
echo "installing $program"

0 commit comments

Comments
 (0)