summaryrefslogtreecommitdiffstats
path: root/oe-init-build-env
diff options
context:
space:
mode:
authorAbongwa Amahnui Bonalais <abongwabonalais@gmail.com>2022-04-05 11:47:05 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-04-05 22:23:40 +0100
commit13eda43533f0e7a9ee8e776ac0af1658d8580005 (patch)
tree1b1efbb144ff26d81873e20f1158ed84c4d84a0f /oe-init-build-env
parent601befb6c76835b96e2bb42230a5b7fcdd28d7fc (diff)
downloadpoky-13eda43533f0e7a9ee8e776ac0af1658d8580005.tar.gz
oe-init-build-env: add quotes around variables to prevent word splitting
Used shellcheck to add quotes to the variables. This is to make sure that directories with names that have space between, such as "Desktop/projects/test repo/poky" will not be considered as 2 separate words. With this modification, running the command "source oe-init-build-env" will not give the error "bash: oe-init-build-env: No such file or directory" (From OE-Core rev: b07a70fbf78f2beba639580e37dffbc0a73bc99f) Signed-off-by: Abongwa Bonalais Amahnui <abongwabonalais@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'oe-init-build-env')
-rwxr-xr-xoe-init-build-env4
1 files changed, 2 insertions, 2 deletions
diff --git a/oe-init-build-env b/oe-init-build-env
index 8c1bd54e57..38333ab858 100755
--- a/oe-init-build-env
+++ b/oe-init-build-env
@@ -42,8 +42,8 @@ fi
42unset THIS_SCRIPT 42unset THIS_SCRIPT
43 43
44export OEROOT 44export OEROOT
45. $OEROOT/scripts/oe-buildenv-internal && 45. "$OEROOT"/scripts/oe-buildenv-internal &&
46 TEMPLATECONF="$TEMPLATECONF" $OEROOT/scripts/oe-setup-builddir || { 46 TEMPLATECONF="$TEMPLATECONF" "$OEROOT"/scripts/oe-setup-builddir || {
47 unset OEROOT 47 unset OEROOT
48 return 1 48 return 1
49} 49}