Skip to content

Commit

Permalink
fix(component_images): Wait for subprocess and fail if any fail. (#1586)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtk54 committed Apr 20, 2017
1 parent 47ecf50 commit 52cd0b3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dev/build_google_component_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,15 @@ SSH_KEY_FILE=$HOME/.ssh/google_empty
fix_defaults
create_empty_ssh_key

PIDS=
for comp in "${COMPONENTS[@]}"; do
LOG="create-${comp}-image.log"
echo "Creating component image for $comp, output will be logged to $LOG..."
create_component_image $comp &> $LOG &
PID=$!
PIDS+=($PID)
done
wait
echo "Waiting on PIDs: ${PIDS[@]}..."
wait ${PIDS[@]}

echo "`date`: DONE"

0 comments on commit 52cd0b3

Please sign in to comment.