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

Fixed directory listing to avoid not matching

parent 298af6a4
Pipeline #741814 passed with stage
in 59 seconds
......@@ -21,10 +21,11 @@ else
endif
if ( -e "${_home_dir}" && ! -e "${_home_dir}/.nogrouplogin" ) then
# customization enabled
foreach _f ( %target_dir%/etc/cern_profile.d/*.csh )
source ${_f}
end
if ( -d %target_dir%/etc/cern_profile.d ) then
foreach _f ( `ls %target_dir%/etc/cern_profile.d/ | grep '\.csh$'` )
source %target_dir%/etc/cern_profile.d/${_f}
end
endif
if ( ! -e "${_home_dir}/.nolbenv" ) then
# LbEnv enabled
# - check the requested flavour
......
......@@ -32,9 +32,11 @@
_home_dir="${TEST_HOME:-${HOME}}"
if [ -e "${_home_dir}" -a ! \( -e "${_home_dir}/.nogrouplogin" \) ] ; then
# customization enabled
for _f in %target_dir%/etc/cern_profile.d/*.sh ; do
source ${_f}
done
if [ -d %target_dir%/etc/cern_profile.d ] ; then
for _f in $(ls %target_dir%/etc/cern_profile.d/ | grep '\.sh$') ; do
source %target_dir%/etc/cern_profile.d/${_f}
done
fi
if [ ! -e "${_home_dir}/.nolbenv" ] ; then
# LbEnv enabled
......
Supports Markdown
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