diff mbox series

cargo_common.bbclass: Add missing space in shell conditional code

Message ID 20220820071901.3174011-1-raj.khem@gmail.com
State Accepted, archived
Commit 9ff2817536f4b568e702470789efeab0008d73a0
Headers show
Series cargo_common.bbclass: Add missing space in shell conditional code | expand

Commit Message

Khem Raj Aug. 20, 2022, 7:19 a.m. UTC
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 `]'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/classes-recipe/cargo_common.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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