Do not exit while running in loop mode

This commit is contained in:
Renato Botelho 2017-08-22 13:35:11 -03:00
parent ba7bc25c49
commit b687d5fa20

View File

@ -216,27 +216,33 @@ while [ /bin/true ]; do
"
if [ -n "${POUDRIERE_SNAPSHOTS}" ]; then
exec_and_update_status \
${BUILDER_ROOT}/build.sh --update-poudriere-ports \
|| exit $?
${BUILDER_ROOT}/build.sh --update-poudriere-ports
rc=$?
exec_and_update_status \
${BUILDER_ROOT}/build.sh ${NO_UPLOAD} --update-pkg-repo \
|| exit $?
if [ $rc -eq 0 ]; then
exec_and_update_status \
${BUILDER_ROOT}/build.sh ${NO_UPLOAD} \
--update-pkg-repo
rc=$?
fi
else
exec_and_update_status \
${BUILDER_ROOT}/build.sh --clean-builder \
|| exit $?
${BUILDER_ROOT}/build.sh --clean-builder
rc=$?
exec_and_update_status \
${BUILDER_ROOT}/build.sh ${NO_UPLOAD} --flash-size '2g 4g' \
--snapshots ${NO_IMAGES} \
|| exit $?
if [ $rc -eq 0 ]; then
exec_and_update_status \
${BUILDER_ROOT}/build.sh ${NO_UPLOAD} --flash-size \
'2g 4g' --snapshots \
${IMAGES}
rc=$?
fi
fi
IFS=${OIFS}
if [ -z "${LOOPED_SNAPSHOTS}" ]; then
# only one build required, exiting
exit
exit ${rc}
fi
# Count some sheep or wait until a new commit turns up