From 46e74b129e10521056d965bd5d83021c9305ca89 Mon Sep 17 00:00:00 2001 From: belliash Date: Mon, 16 Jan 2012 13:33:20 +0100 Subject: [PATCH] update error codes --- ezsync | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ezsync b/ezsync index 17aa221..3a60522 100755 --- a/ezsync +++ b/ezsync @@ -103,7 +103,7 @@ for MODULE in ${MODULES_PRESYNC}; do if [ ${RESULT} -eq 255 ]; then printWarn "Trying to load module: ${MODULE}, that is incompatible with event: presync!" elif [ ${RESULT} -ne 0 ]; then - fail "EzBuild was unable to execute module: ${MODULE}!" + fail "EzBuild was unable to execute module: ${MODULE}!" 255 fi unloadModule done @@ -147,7 +147,7 @@ for MODULE in ${MODULES_POSTSYNC}; do if [ ${RESULT} -eq 255 ]; then printWarn "Trying to load module: ${MODULE}, that is incompatible with event: postsync!" elif [ ${RESULT} -ne 0 ]; then - fail "EzBuild was unable to execute module: ${MODULE}!" + fail "EzBuild was unable to execute module: ${MODULE}!" 255 fi unloadModule done @@ -189,7 +189,7 @@ for MODULE in ${MODULES_PRECOMMIT}; do if [ ${RESULT} -eq 255 ]; then printWarn "Trying to load module: ${MODULE}, that is incompatible with event: precommit!" elif [ ${RESULT} -ne 0 ]; then - fail "EzBuild was unable to execute module: ${MODULE}!" + fail "EzBuild was unable to execute module: ${MODULE}!" 255 fi unloadModule done @@ -197,7 +197,7 @@ done # Regenerate Portage cache printInfo "Updating constructed Portage cache..." run "FEATURES="metadata-transfer" PORTDIR="${PORTAGESDIR}/${PORTAGE_BUILD[0]}" egencache --update --portdir=${PORTAGESDIR}/${PORTAGE_BUILD[0]} --jobs=${MAXJOBS} --load-average=${LOADAVERAGE} --tolerant" -[ ${?} -ne 0 ] && die "EzBuild was unable to regenerate cache!" +[ ${?} -ne 0 ] && die "EzBuild was unable to regenerate cache!" 32 # Execute all 'postcommit' enabled modules for MODULE in ${MODULES_POSTCOMMIT}; do @@ -206,7 +206,7 @@ for MODULE in ${MODULES_POSTCOMMIT}; do if [ ${RESULT} -eq 255 ]; then printWarn "Trying to load module: ${MODULE}, that is incompatible with event: postcommit!" elif [ ${RESULT} -ne 0 ]; then - fail "EzBuild was unable to execute module: ${MODULE}!" + fail "EzBuild was unable to execute module: ${MODULE}!" 255 fi unloadModule done @@ -214,7 +214,7 @@ done # Optionally commit all changes to remote Portage repository if ! isEnabled ${EZOPT_NOPUSH}; then pushRepository ${PORTAGESDIR}/${PORTAGE_BUILD[0]} ${PORTAGE_BUILD[1]} "Automatic update [$(date +"${PUSHDATEFORMAT}")]." - [ ${?} -ne 0 ] && die "Ezbuild was unable to record changes to the remote Portage repository!" + [ ${?} -ne 0 ] && die "Ezbuild was unable to record changes to the remote Portage repository!" 64 fi # Finally quit the application