mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-26 05:23:03 +07:00
Fix error in darwin.sh while updating dependencies
This commit is contained in:
parent
1a42045d48
commit
5afd8a1842
@ -125,10 +125,13 @@ update_dependencies() {
|
|||||||
patch_brew
|
patch_brew
|
||||||
if ! [ -e /tmp/update_dependencies ]; then
|
if ! [ -e /tmp/update_dependencies ]; then
|
||||||
if [ "${runner:?}" != "self-hosted" ] && [ "${ImageOS:-}" != "" ] && [ "${ImageVersion:-}" != "" ]; then
|
if [ "${runner:?}" != "self-hosted" ] && [ "${ImageOS:-}" != "" ] && [ "${ImageVersion:-}" != "" ]; then
|
||||||
while read -r dependency; do
|
deps_file="$tap_dir/$php_tap/.github/deps/${ImageOS:?}_${ImageVersion:?}"
|
||||||
update_dependencies_helper "$dependency" &
|
if [ -e "$deps_file" ]; then
|
||||||
to_wait+=($!)
|
while read -r dependency; do
|
||||||
done <"$tap_dir/$php_tap/.github/deps/${ImageOS:?}_${ImageVersion:?}"
|
update_dependencies_helper "$dependency" &
|
||||||
|
to_wait+=($!)
|
||||||
|
done <"$deps_file"
|
||||||
|
fi
|
||||||
wait "${to_wait[@]}"
|
wait "${to_wait[@]}"
|
||||||
else
|
else
|
||||||
git -C "$core_repo" fetch origin master && git -C "$core_repo" reset --hard origin/master
|
git -C "$core_repo" fetch origin master && git -C "$core_repo" reset --hard origin/master
|
||||||
|
Loading…
Reference in New Issue
Block a user