From d76510b2aa71ced9f4ec80b419204650412161e5 Mon Sep 17 00:00:00 2001 From: "Kasper D. Fischer" Date: Tue, 25 May 2021 13:17:42 +0200 Subject: [PATCH] Fixing pro-epilog_wrapper.sh to prevent error pro-epilog_wrapper exited with error when dir contains more than 1 file --- bin/pro-epilog_wrapper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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