Commit b9de0846 authored by Stefano Belforte's avatar Stefano Belforte
Browse files

better report

parent 84f59c11
......@@ -119,9 +119,16 @@ if [ $isEGEE == 1 ]; then
ls -l $filetosource
set +x; echo "</pre>"
if [ -r "$filetosource" ]; then
source "$filetosource" &>/dev/null
[ -r `which lcg-ls` ] && echo "<p><strong>lcg-ls found ! as " `which lcg-ls` "</strong><p>"
echo "<pre>"; set -x
source $filetosource
set +x; echo "</pre>"
which lcg-ls > /dev/null && lcglsOK=1
[ $lcglsOK == 1 ] && echo "<p><strong>lcg-ls found ! as " `which lcg-ls` "</strong><p>"
if [ $lcglsOK == 0 ]; then
echo "<pre>"
cat $filetosource
echo "</pre>"
fi
fi
fi
......@@ -135,14 +142,14 @@ if [ $isEGEE == 1 ]; then
filetosource=${GLITE_LOCATION}/etc/profile.d/grid-env.sh
echo "<p>try {GLITE_LOCATION}/etc/profile.d/grid-env.sh"
if [ -r "$filetosource" ]; then
source "$filetosource" &>/dev/null
source "$filetosource"
[ -r `which lcg-ls` ] && echo "<p><strong>lcg-ls found ! as " `which lcg-ls` "</strong><p>"
which lcg-ls > /dev/null && lcglsOK=1
fi
filetosource=${GLITE_LOCATION}/../etc/profile.d/grid-env.sh
echo "<p>try {GLITE_LOCATION}/../etc/profile.d/grid-env.sh"
if [ -r "$filetosource" ]; then
source "$filetosource" &>/dev/null
source "$filetosource"
[ -r `which lcg-ls` ] && echo "<p><strong>lcg-ls found ! as " `which lcg-ls` "</strong><p>"
which lcg-ls > /dev/null && lcglsOK=1
fi
......
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