From 430814c0a9f83e701dcc4135e55479e66c12381e Mon Sep 17 00:00:00 2001 From: Peter Tripp Date: Tue, 25 Mar 2025 16:24:05 +0000 Subject: [PATCH] ci: Hide harmless cargo about error from release output (#27433) Hide harmless errors like this from CI output. Screenshot 2025-03-25 at 12 07 36 Release Notes: - N/A --- script/generate-licenses | 2 +- script/generate-licenses-csv | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/script/generate-licenses b/script/generate-licenses index fb9ed83f28..9c0b92bdb1 100755 --- a/script/generate-licenses +++ b/script/generate-licenses @@ -18,7 +18,7 @@ echo -n "" >"$OUTPUT_FILE" echo -e "\n# ###### CODE LICENSES ######\n" } >>"$OUTPUT_FILE" -if ! cargo about --version | grep "cargo-about $CARGO_ABOUT_VERSION" >/dev/null; then +if ! cargo about --version | grep "cargo-about $CARGO_ABOUT_VERSION" 2>&1 >/dev/null; then echo "Installing cargo-about@^$CARGO_ABOUT_VERSION..." cargo install "cargo-about@^$CARGO_ABOUT_VERSION" else diff --git a/script/generate-licenses-csv b/script/generate-licenses-csv index ea02dcb72e..7ffe0f3f14 100755 --- a/script/generate-licenses-csv +++ b/script/generate-licenses-csv @@ -6,7 +6,7 @@ CARGO_ABOUT_VERSION="0.6" OUTPUT_FILE="${1:-$(pwd)/assets/licenses.csv}" TEMPLATE_FILE="script/licenses/template.csv.hbs" -if ! cargo about --version | grep "cargo-about $CARGO_ABOUT_VERSION" > /dev/null; then +if ! cargo about --version | grep "cargo-about $CARGO_ABOUT_VERSION" 2>&1 > /dev/null; then echo "Installing cargo-about@^$CARGO_ABOUT_VERSION..." cargo install "cargo-about@^$CARGO_ABOUT_VERSION" else