7170091: Fix missing wait between repo cloning in hgforest.sh
authorohair
Fri, 08 Jun 2012 17:25:46 -0700
changeset 12802 cd7cb0396d1f
parent 12760 c029c972396c
child 12803 f77d684825bb
7170091: Fix missing wait between repo cloning in hgforest.sh Reviewed-by: strarup
make/scripts/hgforest.sh
--- a/make/scripts/hgforest.sh	Wed Jul 05 18:12:03 2017 +0200
+++ b/make/scripts/hgforest.sh	Fri Jun 08 17:25:46 2012 -0700
@@ -112,6 +112,9 @@
     sleep 5
   fi
 done
+# Wait for all hg commands to complete
+wait
+
 if [ "${repos_extra}" != "" ] ; then
   for i in ${repos_extra} ; do
     echo "Starting on ${i}"
@@ -127,11 +130,10 @@
       sleep 5
     fi
   done
+  # Wait for all hg commands to complete
+  wait
 fi
 
-# Wait for all hg commands to complete
-wait
-
 # Cleanup
 rm -f -r ${tmp}