cargo.eclass: silence declare -p stderr

Otherwise it prints
cargo.eclass: line 201: declare: GIT_CRATES: not found

Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
This commit is contained in:
Georgy Yakovlev
2023-02-08 12:55:30 -08:00
parent 6c961818b7
commit 69fbd19094
+1 -1
View File
@@ -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