From afeee3c07ec949fcfdaac7da49b3b2cc0d48d465 Mon Sep 17 00:00:00 2001 From: Bharat Kunwar Date: Fri, 5 Jul 2019 15:26:39 +0100 Subject: [PATCH] Make source kayobe-env zsh compatible The config falls back to zsh of $BASH_SOURCE is not found Change-Id: Icfcb55cb2be7971c578c93740a4cdd600d3e36b9 Story: 2006173 Task: 35693 --- kayobe-env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kayobe-env b/kayobe-env index 9ebff45..f820d76 100644 --- a/kayobe-env +++ b/kayobe-env @@ -12,7 +12,7 @@ # License for the specific language governing permissions and limitations # under the License. -KAYOBE_CONFIG_ROOT=$(dirname $(realpath ${BASH_SOURCE[0]})) +KAYOBE_CONFIG_ROOT=$(dirname $(realpath ${BASH_SOURCE[0]:-${(%):-%x}})) echo "Using Kayobe config from $KAYOBE_CONFIG_ROOT" export KAYOBE_CONFIG_PATH=$KAYOBE_CONFIG_ROOT/etc/kayobe