fixing path to prolog.d, epilog.d, pe_prolog.d, pe_epilog.d; remove echo

This commit is contained in:
Kasper D. Fischer 2021-05-25 12:14:15 +02:00
parent 02913e042d
commit d49fd18668

View File

@ -4,7 +4,7 @@ PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
FILES=""
SCRIPTNAME=$(basename $0)
DIRS="/opt/SGE/local/scripts/${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
if [ -d ${DIR} ] ; then
if [ ! -z $(ls ${DIR}/[0-9][0-9]*) ] ; then
@ -15,6 +15,6 @@ done
FILESSORTED="$(echo ${FILES} | sort)"
for FILE in ${FILESSORTED} ; do
echo ${FILE} || exit $?
${FILE} || exit $?
done
exit 0