mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Do not exit while running in loop mode
This commit is contained in:
parent
ba7bc25c49
commit
b687d5fa20
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user