Skip to contentSkip to conversation

cargo_common.bbclass: Add missing space in shell conditional code

PATCH New Khem Raj 1 participant 1 message Aug 20, 2022

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 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 `]'

---
 meta/classes-recipe/cargo_common.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes-recipe/cargo_common.bbclass +1 -1
index eec7710a4c..dea0fbe2f6 100644
@@ -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
Signature · 1 line
2.37.2