From 7ab282703509b030b8bdc3ff9c247f860ebfabf9 Mon Sep 17 00:00:00 2001 From: Linden Krouse Date: Wed, 5 Dec 2018 21:51:00 -0500 Subject: [PATCH] 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 --- zephyr-env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zephyr-env.sh b/zephyr-env.sh index 566146289fe..f5b90d2f807 100644 --- a/zephyr-env.sh +++ b/zephyr-env.sh @@ -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