summaryrefslogtreecommitdiffstats
path: root/scripts/oe-buildenv-internal
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2016-03-21 12:41:46 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-21 11:57:31 +0000
commitdab6d59e4781ef252e9d3aef187a314cc21d40a1 (patch)
treee1c61a891cbebbe9498ee952f7b4e0262cb1ae16 /scripts/oe-buildenv-internal
parent068afc5d436c716591a54f7d6e1944d8b6f9a198 (diff)
downloadpoky-dab6d59e4781ef252e9d3aef187a314cc21d40a1.tar.gz
oe-buildenv-internal: Correct the sed expression which updates $PATH
Without this, the code that adds paths to $PATH could cause it to end up with a trailing : which would then cause an error from the sanity checker. (From OE-Core rev: 9c200760cbbe322ed884729eb395f389c863e1c8) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/oe-buildenv-internal')
-rwxr-xr-xscripts/oe-buildenv-internal2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/oe-buildenv-internal b/scripts/oe-buildenv-internal
index bc6a4fedcd..8eee0087a9 100755
--- a/scripts/oe-buildenv-internal
+++ b/scripts/oe-buildenv-internal
@@ -99,7 +99,7 @@ fi
99# Make sure our paths are at the beginning of $PATH 99# Make sure our paths are at the beginning of $PATH
100for newpath in "$BITBAKEDIR/bin" "$OEROOT/scripts"; do 100for newpath in "$BITBAKEDIR/bin" "$OEROOT/scripts"; do
101 # Remove any existences of $newpath from $PATH 101 # Remove any existences of $newpath from $PATH
102 PATH=$(echo $PATH | sed -re "s#(^|:)$newpath(:|$)#\1#g;s#^:##") 102 PATH=$(echo $PATH | sed -re "s#(^|:)$newpath(:|$)#\2#g;s#^:##")
103 103
104 # Add $newpath to $PATH 104 # Add $newpath to $PATH
105 PATH="$newpath:$PATH" 105 PATH="$newpath:$PATH"