Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openwrt/buildscripts.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pkgupdate.sh')
-rwxr-xr-xpkgupdate.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgupdate.sh b/pkgupdate.sh
index e323316..3b8ee36 100755
--- a/pkgupdate.sh
+++ b/pkgupdate.sh
@@ -298,7 +298,7 @@ rsync_files() {
run_jobs() {
local targets=$(fetch_remote_targets)
- local target slot count
+ local target slot count job
#echo "* Compiling packages"
@@ -321,6 +321,11 @@ run_jobs() {
fi
done
) & done
+
+ for job in $(jobs -p); do
+ wait "$job"
+ echo "* Job $job completed"
+ done
}
trap terminate INT TERM