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
This commit is contained in:
Bharat Kunwar 2019-07-05 15:26:39 +01:00
parent b549d2c092
commit afeee3c07e
1 changed files with 1 additions and 1 deletions

View File

@ -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