From de6ab126330e25a255ef60867e1a7958d4c83877 Mon Sep 17 00:00:00 2001 From: Alex Todorov Date: Wed, 11 Oct 2023 18:09:52 +0300 Subject: [PATCH] Fix useless `cat` command --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 455a0419a..f8e0b0114 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: - name: Configure rustc version run: | - RUSTC_VERSION=$(cat rust-toolchain.toml | grep channel | tail -n1 | tr -d " " | cut -f2 -d'"') + RUSTC_VERSION=$(grep channel rust-toolchain.toml | tail -n1 | tr -d " " | cut -f2 -d'"') echo "RUSTC_VERSION=$RUSTC_VERSION" >> "$GITHUB_ENV" - name: Install Rust toolchain @@ -53,7 +53,7 @@ jobs: - name: Configure rustc version run: | - RUSTC_VERSION=$(cat rust-toolchain.toml | grep channel | tail -n1 | tr -d " " | cut -f2 -d'"') + RUSTC_VERSION=$(grep channel rust-toolchain.toml | tail -n1 | tr -d " " | cut -f2 -d'"') echo "RUSTC_VERSION=$RUSTC_VERSION" >> "$GITHUB_ENV" - name: Install Rust toolchain @@ -88,7 +88,7 @@ jobs: - name: Configure rustc version run: | - RUSTC_VERSION=$(cat rust-toolchain.toml | grep channel | tail -n1 | tr -d " " | cut -f2 -d'"') + RUSTC_VERSION=$(grep channel rust-toolchain.toml | tail -n1 | tr -d " " | cut -f2 -d'"') echo "RUSTC_VERSION=$RUSTC_VERSION" >> "$GITHUB_ENV" - name: Install Rust toolchain @@ -120,7 +120,7 @@ jobs: - name: Configure rustc version run: | - RUSTC_VERSION=$(cat rust-toolchain.toml | grep channel | tail -n1 | tr -d " " | cut -f2 -d'"') + RUSTC_VERSION=$(grep channel rust-toolchain.toml | tail -n1 | tr -d " " | cut -f2 -d'"') echo "RUSTC_VERSION=$RUSTC_VERSION" >> "$GITHUB_ENV" - name: Install Rust toolchain