cargo_common.bbclass: fix bashism

While /bin/sh -> dash, var-EXTERNALSRC didn't work

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
This commit is contained in:
Hongxu Jia
2018-11-20 22:06:24 +08:00
parent ea613e2ae2
commit 3b9251e732
+1 -1
View File
@@ -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"