summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvapier <vapier>2015-10-14 13:55:56 +0000
committervapier <vapier>2015-10-14 13:55:56 +0000
commitcdf32e3f401cf408f7d441489d2b170b1ba2c21f (patch)
treea063a3a066e57fbbc87fa8577ae338a87b883af0 /locale-gen
parentlocale-gen: default --jobs to ncpus online (diff)
downloadlocale-gen-cdf32e3f401cf408f7d441489d2b170b1ba2c21f.tar.gz
locale-gen-cdf32e3f401cf408f7d441489d2b170b1ba2c21f.tar.bz2
locale-gen-cdf32e3f401cf408f7d441489d2b170b1ba2c21f.zip
locale-gen: fix wait logic to not double increment job counter
Diffstat (limited to 'locale-gen')
-rwxr-xr-xlocale-gen4
1 files changed, 2 insertions, 2 deletions
diff --git a/locale-gen b/locale-gen
index 85e74f4..31e38c4 100755
--- a/locale-gen
+++ b/locale-gen
@@ -52,7 +52,7 @@ show_usage() {
}
show_version() {
local b="(" a=")"
- local cvsver="$Revision: 1.40 $b $Date: 2015/10/14 13:48:21 $a"
+ local cvsver="$Revision: 1.41 $b $Date: 2015/10/14 13:55:56 $a"
echo "locale-gen-${cvsver//: }"
exit 0
}
@@ -339,7 +339,7 @@ while [[ -n ${locales_to_generate[${lidx}]} ]] ; do
done
for (( i = JOB_IDX_S; i < JOB_IDX_E; ++i )) ; do
- wait ${JOB_PIDS[$(( i++ ))]}
+ wait ${JOB_PIDS[i]}
JOB_RETS+=( $? )
done
ret=$(( 0 ${JOB_RETS[@]/#/+} ))