Fixing pro-epilog_wrapper.sh to prevent error
pro-epilog_wrapper exited with error when dir contains more than 1 file
This commit is contained in:
1 parent
d49fd18668
commit
d76510b2aa
1 file changed
+1
-1
@@ -7,7 +7,7 @@ SCRIPTNAME=$(basename $0)
|
|||||||
DIRS="/opt/SGE/local/${SCRIPTNAME}.d /usr/local/etc/gridengine/${SCRIPTNAME}.d"
|
DIRS="/opt/SGE/local/${SCRIPTNAME}.d /usr/local/etc/gridengine/${SCRIPTNAME}.d"
|
||||||
for DIR in ${DIRS} ; do
|
for DIR in ${DIRS} ; do
|
||||||
if [ -d ${DIR} ] ; then
|
if [ -d ${DIR} ] ; then
|
||||||
if [ ! -z $(ls ${DIR}/[0-9][0-9]*) ] ; then
|
if [ ! -z "$(ls ${DIR}/[0-9][0-9]*)" ] ; then
|
||||||
FILES="${FILES} $(ls ${DIR}/[0-9][0-9]*)"
|
FILES="${FILES} $(ls ${DIR}/[0-9][0-9]*)"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in new issue
Block a user