From 524374ad4dd6030604f42eff0d71dfcf41647eb2 Mon Sep 17 00:00:00 2001 From: discord9 Date: Wed, 25 Sep 2024 15:52:24 +0800 Subject: [PATCH] refactor: multiple line bash --- .github/workflows/develop.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index 16a3ad07c1be..073c40748618 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -271,7 +271,11 @@ jobs: run: cargo install cargo-gc-bin - name: Check aws-lc-sys will not build shell: bash - run: cargo tree -i aws-lc-sys -e features | grep aws-lc-sys && echo "Found aws-lc-sys, due to it having problem compiling on older gcc and etc. for now, please replace it with ring for now until it improve it's building experience" && exit 1 || true + run: | + if cargo tree -i aws-lc-sys -e features | grep -q aws-lc-sys; then + echo "Found aws-lc-sys, which has compilation problems on older gcc versions. Please replace it with ring until its building experience improves." + exit 1 + fi - name: Build greptime bianry shell: bash # `cargo gc` will invoke `cargo build` with specified args