From 69fbd190941eeef66158cd034e506d084032c992 Mon Sep 17 00:00:00 2001 From: Georgy Yakovlev Date: Wed, 8 Feb 2023 12:41:23 -0800 Subject: [PATCH] cargo.eclass: silence declare -p stderr Otherwise it prints cargo.eclass: line 201: declare: GIT_CRATES: not found Signed-off-by: Georgy Yakovlev --- eclass/cargo.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass index 160f8a24054af..de24a5f84318f 100644 --- a/eclass/cargo.eclass +++ b/eclass/cargo.eclass @@ -198,7 +198,7 @@ cargo_crate_uris() { done local git_crates_type - git_crates_type="$(declare -p GIT_CRATES)" + git_crates_type="$(declare -p GIT_CRATES 2>&-)" if [[ ${git_crates_type} == "declare -A "* ]]; then local crate commit crate_uri crate_dir repo_ext feat_expr