diff options
| -rwxr-xr-x | scripts/oe-buildenv-internal | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/oe-buildenv-internal b/scripts/oe-buildenv-internal index 0a4d3243d1..df953896f1 100755 --- a/scripts/oe-buildenv-internal +++ b/scripts/oe-buildenv-internal | |||
| @@ -74,8 +74,9 @@ if ! (test -d "$BITBAKEDIR"); then | |||
| 74 | return 1 | 74 | return 1 |
| 75 | fi | 75 | fi |
| 76 | 76 | ||
| 77 | PATH="${OEROOT}/scripts:$BITBAKEDIR/bin/:$PATH" | 77 | NEWPATHS="${OEROOT}/scripts:$BITBAKEDIR/bin/:" |
| 78 | unset BITBAKEDIR | 78 | [ "${PATH#$NEWPATHS}" != "$PATH" ] || PATH="$NEWPATHS$PATH" |
| 79 | unset BITBAKEDIR NEWPATHS | ||
| 79 | 80 | ||
| 80 | # Used by the runqemu script | 81 | # Used by the runqemu script |
| 81 | export BUILDDIR | 82 | export BUILDDIR |
