From 5cc0322c4526869901d1c3f25c99700133210f91 Mon Sep 17 00:00:00 2001 From: Andrew Boie Date: Mon, 1 Aug 2016 16:22:08 -0700 Subject: [PATCH] zephyr-env.sh: prepend to PATH Currently, if you source this in one Zephyr tree and then source it again in a second copy, the PATH will still prefer tools and scripts the first Zephyr tree. Change-Id: I658231025b155d19a2bffa25b8062be7ccd06da4 Signed-off-by: Andrew Boie --- zephyr-env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zephyr-env.sh b/zephyr-env.sh index 0e75530e68f010..e22744aa9fa229 100644 --- a/zephyr-env.sh +++ b/zephyr-env.sh @@ -52,7 +52,7 @@ export ZEPHYR_BASE=$( builtin cd "$( dirname "$DIR" )" && pwd ${MINGW_OPT}) scripts_path=${ZEPHYR_BASE}/scripts echo "${PATH}" | grep -q "${scripts_path}" -[ $? != 0 ] && export PATH=${PATH}:${scripts_path} +[ $? != 0 ] && export PATH=${scripts_path}:${PATH} unset scripts_path # enable custom environment settings