diff --git a/bin/pro-epilog_wrapper.sh b/bin/pro-epilog_wrapper.sh index ee652c6..de18b01 100755 --- a/bin/pro-epilog_wrapper.sh +++ b/bin/pro-epilog_wrapper.sh @@ -7,7 +7,7 @@ SCRIPTNAME=$(basename $0) DIRS="/opt/SGE/local/${SCRIPTNAME}.d /usr/local/etc/gridengine/${SCRIPTNAME}.d" for DIR in ${DIRS} ; do 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]*)" fi fi