diff --git a/zephyr-env.sh b/zephyr-env.sh index 39656c59fdd..55e7bf6c70e 100644 --- a/zephyr-env.sh +++ b/zephyr-env.sh @@ -39,6 +39,7 @@ uname | grep -q -P "MINGW|MSYS" && PWD_OPT="-W" # identify OS source tree root directory export ZEPHYR_BASE=$( builtin cd "$( dirname "$DIR" )" && pwd ${PWD_OPT}) +unset PWD_OPT scripts_path=${ZEPHYR_BASE}/scripts scripts_path=$(echo "/$scripts_path" | sed 's/\\/\//g' | sed 's/://')