summaryrefslogtreecommitdiff
path: root/zephyr-env.sh
diff options
context:
space:
mode:
authorYannis Damigos <giannis.damigos@gmail.com>2016-02-25 12:13:14 +0200
committerGerrit Code Review <gerrit@zephyrproject.org>2016-02-27 10:15:14 +0000
commit72d498c3a4408ad33a99f37a3a79be98c901b1a6 (patch)
tree5cd0e5bf9e8272bb8ffcb8cecfe60cfdc7448b6e /zephyr-env.sh
parent1aded0781cc6b894838df6a099d0e9b297096184 (diff)
zephyr-env.sh: Fixed sourcing the project environment file from zsh
It will possible to source the project environment file from both zsh and bash. Change-Id: Ib6cbf4259378433bcf28a042898b69bb4b6b2a82 Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
Diffstat (limited to 'zephyr-env.sh')
-rw-r--r--zephyr-env.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/zephyr-env.sh b/zephyr-env.sh
index dcb0638b7..980ee93e9 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