for defect 2989912,

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6790 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
mxi1 2010-07-19 10:10:47 +00:00
parent ec11964907
commit 461c236542
2 changed files with 22 additions and 15 deletions

View File

@ -329,14 +329,18 @@ FindFile () {
if [ -e ${TREEMOUNT}/${DIR}${path} ]
then
FOUND=1 # we found it!
ProcessType ${TREEMOUNT}/${DIR}${path} ${path} ${type} ${isChild}
if [ "${2}" = "con" ]
then
1
else
break
fi
#TODO:
if [ -z $(ls ${TREEMOUNT}/${DIR}${path}) ]; then
FOUND=0
else
ProcessType ${TREEMOUNT}/${DIR}${path} ${path} ${type} ${isChild}
if [ "${2}" = "con" ]
then
1
else
break
fi
fi
fi
done

View File

@ -330,14 +330,17 @@ FindFile () {
if [ -e ${TREEMOUNT}/${DIR}${path} ]
then
FOUND=1 # we found it!
ProcessType ${TREEMOUNT}/${DIR}${path} ${path} ${type} ${isChild}
if [ "${2}" = "con" ]
then
1
else
break
if [ -z $(ls ${TREEMOUNT}/${DIR}${path}) ]; then
FOUND=0
else
ProcessType ${TREEMOUNT}/${DIR}${path} ${path} ${type} ${isChild}
if [ "${2}" = "con" ]
then
1
else
break
fi
fi
fi
done