Patch brew on every run

This commit is contained in:
Shivam Mathur 2022-04-09 21:46:00 +05:30
parent 36d70683e9
commit 657e0936e8
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -157,9 +157,9 @@ update_dependencies_helper() {
# Function to update dependencies. # Function to update dependencies.
update_dependencies() { update_dependencies() {
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
patch_brew
while read -r dependency; do while read -r dependency; do
update_dependencies_helper "$dependency" & update_dependencies_helper "$dependency" &
to_wait+=($!) to_wait+=($!)