From 72d498c3a4408ad33a99f37a3a79be98c901b1a6 Mon Sep 17 00:00:00 2001 From: Yannis Damigos Date: Thu, 25 Feb 2016 12:13:14 +0200 Subject: [PATCH] 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 --- zephyr-env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zephyr-env.sh b/zephyr-env.sh index dcb0638b72d..980ee93e915 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