diff options
Diffstat (limited to 'scripts')
| -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 df953896f1..644df8f30c 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 | NEWPATHS="${OEROOT}/scripts:$BITBAKEDIR/bin/:" | 77 | # Make sure our paths are at the beginning of $PATH |
| 78 | [ "${PATH#$NEWPATHS}" != "$PATH" ] || PATH="$NEWPATHS$PATH" | 78 | NEWPATHS="${OEROOT}/scripts:$BITBAKEDIR/bin:" |
| 79 | PATH=$NEWPATHS$(echo $PATH | sed -e "s|:$NEWPATHS|:|g" -e "s|^$NEWPATHS||") | ||
| 79 | unset BITBAKEDIR NEWPATHS | 80 | unset BITBAKEDIR NEWPATHS |
| 80 | 81 | ||
| 81 | # Used by the runqemu script | 82 | # Used by the runqemu script |
