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:22:41 +0100
commitb07a70fbf78f2beba639580e37dffbc0a73bc99f (patch)
treeabe7a25cf5b139598d225b094e1ed672cdf03a30 /oe-init-build-env
parent7d6f4b1373e4dfafc63702ef2426cd45100f18a3 (diff)
downloadopenembedded-core-b07a70fbf78f2beba639580e37dffbc0a73bc99f.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" 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
unset THIS_SCRIPT
export OEROOT
-. $OEROOT/scripts/oe-buildenv-internal &&
- TEMPLATECONF="$TEMPLATECONF" $OEROOT/scripts/oe-setup-builddir || {
+. "$OEROOT"/scripts/oe-buildenv-internal &&
+ TEMPLATECONF="$TEMPLATECONF" "$OEROOT"/scripts/oe-setup-builddir || {
unset OEROOT
return 1
}