[scripts] iso_build.sh: fix --pushonly handling

This commit is contained in:
Fabio Erculiani
2013-05-27 06:06:17 +02:00
parent 1ab38500ac
commit d02b3d57ca
+9 -5
View File
@@ -488,17 +488,21 @@ Thanks,
Sun" | /bin/mail -s "${ACTION} images build script failure" root
}
out="0"
out=0
if [ -n "${DO_STDOUT}" ]; then
[[ -n "${DO_PUSHONLY}" ]] || build_sabayon
out=${?}
if [ -z "${DO_PUSHONLY}" ]; then
build_sabayon
out=${?}
fi
if [ "${out}" = "0" ]; then
move_to_mirrors
out=${?}
fi
else
[[ -n "${DO_PUSHONLY}" ]] || build_sabayon &> "${LOG_FILE}"
out=${?}
if [ -z "${DO_PUSHONLY}" ]; then
build_sabayon &> "${LOG_FILE}"
out=${?}
fi
if [ "${out}" = "0" ]; then
move_to_mirrors &>> "${LOG_FILE}"
out=${?}