From 22795b488b882aa423e6bc330a81820f41ec0eb9 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 14 May 2012 13:35:29 -0400 Subject: [PATCH] multijob_post_fork: simpler handling of return value Signed-off-by: Mike Frysinger --- bin/helper-functions.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/helper-functions.sh b/bin/helper-functions.sh index 37f0b1337..afe14af91 100644 --- a/bin/helper-functions.sh +++ b/bin/helper-functions.sh @@ -54,11 +54,9 @@ multijob_finish() { } multijob_post_fork() { - local ret=0 : $(( ++mj_num_jobs )) if [[ ${mj_num_jobs} -ge ${mj_max_jobs} ]] ; then multijob_finish_one - : $(( ret |= $? )) fi - return ${ret} + return $? } -- 2.26.2