update the expresion for ksh
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7869 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
9ade4a4125
commit
ca309c21f4
@ -260,12 +260,12 @@ FindFile () {
|
||||
if [ -e ${SRC} ]; then
|
||||
PATHEND=${#path}
|
||||
CHAREND=`echo ${path} |cut -c${PATHEND}`
|
||||
if [ ${CHAREND} -ne '/' ] && [ -d ${SRC} ]; then
|
||||
if [ "${CHAREND}" = '/' ] && [ -d ${SRC} ]; then
|
||||
FOUND=0
|
||||
continue
|
||||
fi
|
||||
|
||||
if [ ${CHAREND} -eq "/" ] && [ -f ${SRC} ]; then
|
||||
if [ "${CHAREND}" = "/" ] && [ -f ${SRC} ]; then
|
||||
FOUND=0
|
||||
continue
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user