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