shell: Piped output of cd to /dev/null when setting ZEPHYR_BASE.

Solves an issue where any output from the user's shell's cd command
would be prepended to ZEPHYR_BASE when sourcing zephyr_env.sh.
Fixes #11894.

Signed-off-by: Linden Krouse <ztaticnull@gmail.com>
This commit is contained in:
Linden Krouse 2018-12-05 21:51:00 -05:00 committed by Anas Nashif
parent ab82ef4ca5
commit 7ab2827035
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ else
fi
# identify OS source tree root directory
export ZEPHYR_BASE=$( builtin cd "$( dirname "$DIR" )" && pwd ${PWD_OPT})
export ZEPHYR_BASE=$( builtin cd "$( dirname "$DIR" )" > /dev/null && pwd ${PWD_OPT})
unset PWD_OPT
scripts_path=${ZEPHYR_BASE}/scripts