From 3b9251e7324048507ab3cb58ca957a06618c5944 Mon Sep 17 00:00:00 2001 From: Hongxu Jia Date: Tue, 20 Nov 2018 22:06:24 +0800 Subject: [PATCH] cargo_common.bbclass: fix bashism While /bin/sh -> dash, var-EXTERNALSRC didn't work Signed-off-by: Hongxu Jia --- classes/cargo_common.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/cargo_common.bbclass b/classes/cargo_common.bbclass index 4236c46..94550d1 100644 --- a/classes/cargo_common.bbclass +++ b/classes/cargo_common.bbclass @@ -35,7 +35,7 @@ cargo_common_do_configure () { directory = "${CARGO_HOME}/bitbake" EOF - if [ "${EXTERNALSRC}" == "" ]; then + if [ -z "${EXTERNALSRC}" ]; then cat <<- EOF >> ${CARGO_HOME}/config [source.crates-io] replace-with = "bitbake"