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:
parent
b549d2c092
commit
afeee3c07e
@ -12,7 +12,7 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# 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"
|
echo "Using Kayobe config from $KAYOBE_CONFIG_ROOT"
|
||||||
|
|
||||||
export KAYOBE_CONFIG_PATH=$KAYOBE_CONFIG_ROOT/etc/kayobe
|
export KAYOBE_CONFIG_PATH=$KAYOBE_CONFIG_ROOT/etc/kayobe
|
||||||
|
Loading…
x
Reference in New Issue
Block a user