Skip to content
Snippets Groups Projects
Commit 003bae2d authored by Emil Obreshkov's avatar Emil Obreshkov
Browse files

Added protection for EOS false positive error.

parent b40078fa
No related branches found
No related tags found
No related merge requests found
...@@ -59,7 +59,7 @@ else ...@@ -59,7 +59,7 @@ else
DDAY=${WEEKDAY} DDAY=${WEEKDAY}
fi fi
echo "=====================================================" echo "====================================================="
echo "=== STARTING RPMs copy to /eos" echo "=== STARTING RPMs copy to /eos at `date`"
echo "=====================================================" echo "====================================================="
...@@ -67,7 +67,8 @@ DESTDIR=${DESTDIR}/${BRANCH}/${ARCH}/${DDAY} ...@@ -67,7 +67,8 @@ DESTDIR=${DESTDIR}/${BRANCH}/${ARCH}/${DDAY}
if [ ! -d ${DESTDIR} ] ; then if [ ! -d ${DESTDIR} ] ; then
echo "mkdir -p ${DESTDIR}" echo "mkdir -p ${DESTDIR}"
mkdir -p ${DESTDIR} || ((ERROR_COUNT++)) mkdir -p ${DESTDIR}
if [ ! -d ${DESTDIR} ] ; then ERROR_COUNT++ ; fi #avoid false positive eos error if the directory was actually created
fi fi
arr_rpm=(`(shopt -s nocaseglob; ls ${SOURCEDIR}/*.rpm)`) arr_rpm=(`(shopt -s nocaseglob; ls ${SOURCEDIR}/*.rpm)`)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment