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

Fix special case of LbEnv.csh called from tcsh login or rc

parent b2463fad
Pipeline #794612 passed with stage
in 21 seconds
......@@ -16,7 +16,11 @@ if ( ! $?LBENV_SOURCED ) then
if ( -e %lbenv_root%/$_host_os/bin/activate.csh ) then
source %lbenv_root%/$_host_os/bin/activate.csh
eval `python -m LbEnv --csh --siteroot %siteroot% !:2* || echo deactivate`
if ( `history 1 | wc -l` ) then
eval `python -m LbEnv --csh --siteroot %siteroot% !:2* || echo deactivate`
else
eval `python -m LbEnv --csh --siteroot %siteroot% || echo deactivate`
endif
else
echo "Platform not supported ($_host_os)"
endif
......
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