Skip to content

Commit

Permalink
win-build: corrects scripts_path for windows build.
Browse files Browse the repository at this point in the history
Corrects the format for scripts_path from C:/ to /c/ to be added to
PATH correctly.

Change-Id: I2668dff2b9b6f20a25651f629c7a134e9426ee97
Signed-off-by: Sonia Leon Bautista <sonia.leon.bautista@intel.com>
  • Loading branch information
sleonbau authored and Anas Nashif committed Oct 15, 2016
1 parent c5248a9 commit e4db6c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zephyr-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ uname | grep -q MINGW && MINGW_OPT="-W"
export ZEPHYR_BASE=$( builtin cd "$( dirname "$DIR" )" && pwd ${MINGW_OPT})

scripts_path=${ZEPHYR_BASE}/scripts
scripts_path=$(echo "/$scripts_path" | sed 's/\\/\//g' | sed 's/://')
echo "${PATH}" | grep -q "${scripts_path}"
[ $? != 0 ] && export PATH=${scripts_path}:${PATH}
unset scripts_path
Expand Down

0 comments on commit e4db6c7

Please sign in to comment.