summaryrefslogtreecommitdiff
path: root/src/sync.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/sync.sh')
-rwxr-xr-xsrc/sync.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sync.sh b/src/sync.sh
index 0be6c83..9f3ba29 100755
--- a/src/sync.sh
+++ b/src/sync.sh
@@ -78,11 +78,12 @@ popularity_contest () {
fi
local list=$(ls -1 -d $PACKAGES_DIR/*)
- local total=$(echo $list | wc -l)
+ set -- $list
+ local total=$#
local completed=0
for package_dir in $list; do
- contest $package_dir &
+ contest $package_dir
completed=$((completed+1))
${QUIET} || hbar -T "${LARGE_CIRCLE} contesting packages..." $completed $total
done
@@ -132,7 +133,6 @@ sync () {
# index packages and dependencies
${QUIET} || hbar
- ${QUIET} || hbar
index_repo 1 &
index_deps 0 &