Commit cd8aa2d6 authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Allow overriding of LbEnv kit location

parent 3a0f1a50
Pipeline #861534 passed with stages
in 49 seconds
......@@ -14,11 +14,11 @@ if [ -z "$LBENV_SOURCED" ] ; then
export LBENV_FLAVOUR=%flavour%
_host_os=$(%target_dir%/bin/host_os)
if [ -e %lbenv_root%/$_host_os/bin/activate ] ; then
source %lbenv_root%/$_host_os/bin/activate
if [ -e ${OVERRIDE_LBENVROOT:-%lbenv_root%/$_host_os}/bin/activate ] ; then
source ${OVERRIDE_LBENVROOT:-%lbenv_root%/$_host_os}/bin/activate
eval $(python -m LbEnv --sh --siteroot ${OVERRIDE_MYSITEROOT:-%siteroot%} "$@" || echo deactivate)
else
echo "Platform not supported ($_host_os)"
echo "Platform not supported: cannot find ${OVERRIDE_LBENVROOT:-%lbenv_root%/$_host_os}"
fi
unset _host_os
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment