From 081a3655fbb10b83793f102b975e153e75240682 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 20 Aug 2022 00:19:01 -0700 Subject: [PATCH] cargo_common.bbclass: Add missing space in shell conditional code Fixes cofigure errors in rust recipes e.g. tmp/work/riscv32-yoe-linux-musl/rust/1.62.1-r0/temp/run.setup_cargo_environment.3047487: line 215: [: missing `]' (From OE-Core rev: 9ff2817536f4b568e702470789efeab0008d73a0) Signed-off-by: Khem Raj Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- meta/classes-recipe/cargo_common.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes-recipe/cargo_common.bbclass b/meta/classes-recipe/cargo_common.bbclass index eec7710a4c..dea0fbe2f6 100644 --- a/meta/classes-recipe/cargo_common.bbclass +++ b/meta/classes-recipe/cargo_common.bbclass @@ -88,7 +88,7 @@ cargo_common_do_configure () { EOF fi - if [ "${RUST_TARGET_SYS}" != "${RUST_BUILD_SYS}" -a "${RUST_TARGET_SYS}" != "${RUST_HOST_SYS}"]; then + if [ "${RUST_TARGET_SYS}" != "${RUST_BUILD_SYS}" -a "${RUST_TARGET_SYS}" != "${RUST_HOST_SYS}" ]; then cat <<- EOF >> ${CARGO_HOME}/config # TARGET_SYS