summaryrefslogtreecommitdiff
path: root/zephyr-env.sh
diff options
context:
space:
mode:
authorSonia Leon Bautista <sonia.leon.bautista@intel.com>2016-10-14 17:22:05 -0500
committerAnas Nashif <nashif@linux.intel.com>2016-10-15 15:09:54 +0000
commite4db6c7af5c9f18aeb030efe4691ea173bbb076b (patch)
tree619dde3c014c4bcb8eae0be6b0c681f858f77a4b /zephyr-env.sh
parentc5248a9d2659000837eaa3b064b355dffe47e021 (diff)
win-build: corrects scripts_path for windows build.
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>
Diffstat (limited to 'zephyr-env.sh')
-rw-r--r--zephyr-env.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/zephyr-env.sh b/zephyr-env.sh
index e22744aa9..8bcc2b123 100644
--- a/zephyr-env.sh
+++ b/zephyr-env.sh
@@ -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