From 5afd8a184259dd0d5bc6e671fc85250015b5d0d6 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Mon, 19 Dec 2022 09:00:00 +0530 Subject: [PATCH] Fix error in darwin.sh while updating dependencies --- src/scripts/darwin.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/scripts/darwin.sh b/src/scripts/darwin.sh index 59505d6f..cfb844eb 100644 --- a/src/scripts/darwin.sh +++ b/src/scripts/darwin.sh @@ -125,10 +125,13 @@ update_dependencies() { patch_brew if ! [ -e /tmp/update_dependencies ]; then if [ "${runner:?}" != "self-hosted" ] && [ "${ImageOS:-}" != "" ] && [ "${ImageVersion:-}" != "" ]; then - while read -r dependency; do - update_dependencies_helper "$dependency" & - to_wait+=($!) - done <"$tap_dir/$php_tap/.github/deps/${ImageOS:?}_${ImageVersion:?}" + deps_file="$tap_dir/$php_tap/.github/deps/${ImageOS:?}_${ImageVersion:?}" + if [ -e "$deps_file" ]; then + while read -r dependency; do + update_dependencies_helper "$dependency" & + to_wait+=($!) + done <"$deps_file" + fi wait "${to_wait[@]}" else git -C "$core_repo" fetch origin master && git -C "$core_repo" reset --hard origin/master