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