From e4db6c7af5c9f18aeb030efe4691ea173bbb076b Mon Sep 17 00:00:00 2001 From: Sonia Leon Bautista Date: Fri, 14 Oct 2016 17:22:05 -0500 Subject: [PATCH] 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 --- zephyr-env.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/zephyr-env.sh b/zephyr-env.sh index e22744aa9fa..8bcc2b12363 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