Re: Source the project environment file from zsh

Oliver Hahm <oliver.hahm@...>
 

Hi!

On Sun, Feb 21, 2016 at 05:37:26PM -0000, Yannis Damigos wrote:
Hi all,

The above did not work for me. The following worked

diff --git a/zephyr-env.sh b/zephyr-env.sh
index dcb0638..21eca53 100644
--- a/zephyr-env.sh
+++ b/zephyr-env.sh
@@ -1,5 +1,5 @@

-if [ "X$(basename -- "$0")" == "Xzephyr-env.sh" ]; then
+if [ "X$(basename -z -- "$0")" = "Xzephyr-env.sh" ]; then
echo "Source this file (do NOT execute it!) to set the Zephyr Kernel environment."
exit
fi
Thanks, that seems to work for zsh and bash.

Cheers,
Oleg

Join devel@lists.zephyrproject.org to automatically receive all group messages.