Commit d43c38ae authored by Ben Couturier's avatar Ben Couturier
Browse files

Merge branch 'clemenci-master-patch-46502' into 'master'

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

See merge request !6
parents b2463fad ed9ef699
Pipeline #794728 passed with stage
in 1 minute and 5 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