Skip to content

Commit

Permalink
shell: Piped output of cd to /dev/null when setting ZEPHYR_BASE.
Browse files Browse the repository at this point in the history
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 zephyrproject-rtos#11894.

Signed-off-by: Linden Krouse <[email protected]>
  • Loading branch information
Lindenk authored and nashif committed Dec 7, 2018
1 parent ab82ef4 commit 7ab2827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zephyr-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7ab2827

Please sign in to comment.