From dab6d59e4781ef252e9d3aef187a314cc21d40a1 Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Mon, 21 Mar 2016 12:41:46 +0100 Subject: 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 Signed-off-by: Richard Purdie --- scripts/oe-buildenv-internal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/oe-buildenv-internal') 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 # Make sure our paths are at the beginning of $PATH for newpath in "$BITBAKEDIR/bin" "$OEROOT/scripts"; do # Remove any existences of $newpath from $PATH - PATH=$(echo $PATH | sed -re "s#(^|:)$newpath(:|$)#\1#g;s#^:##") + PATH=$(echo $PATH | sed -re "s#(^|:)$newpath(:|$)#\2#g;s#^:##") # Add $newpath to $PATH PATH="$newpath:$PATH" -- cgit v1.2.3-54-g00ecf