Skip to content

Commit

Permalink
Fix grep usage
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Oct 18, 2023
1 parent 937661c commit 09ab1d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
LLVM_VERSION="$(rustc --version -v | grep '^LLVM version:' | grep -m 1 -o '[0-9]\+')"
LLVM_VERSION="$(rustc --version -v | grep '^LLVM version:' | grep -o '[0-9]\+ | head -n 1')"
sudo ./llvm.sh "$LLVM_VERSION"
- name: Build
run: cargo build --features=${{ matrix.features }} -vv
Expand Down

0 comments on commit 09ab1d4

Please sign in to comment.