From d02b3d57ca2ae362ae29437a5d8ede1d58dc17a9 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Mon, 27 May 2013 06:06:17 +0200 Subject: [PATCH] [scripts] iso_build.sh: fix --pushonly handling --- scripts/iso_build.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/scripts/iso_build.sh b/scripts/iso_build.sh index 0cba176..6a863c1 100755 --- a/scripts/iso_build.sh +++ b/scripts/iso_build.sh @@ -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=${?}