diff options
author | vapier <vapier> | 2015-10-14 13:55:56 +0000 |
---|---|---|
committer | vapier <vapier> | 2015-10-14 13:55:56 +0000 |
commit | cdf32e3f401cf408f7d441489d2b170b1ba2c21f (patch) | |
tree | a063a3a066e57fbbc87fa8577ae338a87b883af0 /locale-gen | |
parent | locale-gen: default --jobs to ncpus online (diff) | |
download | locale-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-x | locale-gen | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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[@]/#/+} )) |