From 0b9e3b1c521461dc210595221b12f8e118e23f30 Mon Sep 17 00:00:00 2001
From: Zachary Bailey <t-zbailey@microsoft.com>
Date: Thu, 11 Apr 2024 15:39:07 -0700
Subject: [PATCH] perf: remove parallelization

---
 vhdbuilder/packer/install-dependencies.sh | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/vhdbuilder/packer/install-dependencies.sh b/vhdbuilder/packer/install-dependencies.sh
index 395a0d9408d..7d9a59a1c8c 100644
--- a/vhdbuilder/packer/install-dependencies.sh
+++ b/vhdbuilder/packer/install-dependencies.sh
@@ -272,8 +272,6 @@ string_replace() {
   echo ${1//\*/$2}
 }
 
-declare -a containerImagePids=()
-
 ContainerImages=$(jq ".ContainerImages" $COMPONENTS_FILEPATH | jq .[] --monochrome-output --compact-output)
 for imageToBePulled in ${ContainerImages[*]}; do
   downloadURL=$(echo "${imageToBePulled}" | jq .downloadURL -r)
@@ -297,11 +295,9 @@ for imageToBePulled in ${ContainerImages[*]}; do
 
   for version in ${versions}; do
     CONTAINER_IMAGE=$(string_replace $downloadURL $version)
-    pullContainerImage ${cliTool} ${CONTAINER_IMAGE} &
-    containerImagePids+=($!)
+    pullContainerImage ${cliTool} ${CONTAINER_IMAGE}
     echo "  - ${CONTAINER_IMAGE}" >> ${VHD_LOGS_FILEPATH}
   done
-  wait ${containerImagePids[@]}
 done
 
 watcher=$(jq '.ContainerImages[] | select(.downloadURL | contains("aks-node-ca-watcher"))' $COMPONENTS_FILEPATH)