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