Skip to content

Commit

Permalink
Fixed broken pipe race condition in ensure_installed
Browse files Browse the repository at this point in the history
  • Loading branch information
XAMPPRocky authored and bnjbvr committed Sep 18, 2019
1 parent c0274ec commit 3c6795d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cranelift/test-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ ensure_installed() {
program="$1"
toolchain="${2:-stable}"
if has_toolchain $toolchain; then
if cargo +$toolchain install --list | grep -q $program; then
if grep -q $program <(cargo +$toolchain install --list); then
echo "$program found"
else
echo "installing $program"
Expand Down

0 comments on commit 3c6795d

Please sign in to comment.