Hotfix: update brew along with core tap

This commit is contained in:
Shivam Mathur 2024-03-31 03:51:38 +05:30
parent 116fe4df69
commit b203b24815
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -135,7 +135,9 @@ patch_brew() {
update_dependencies() { update_dependencies() {
patch_brew patch_brew
if ! [ -e /tmp/update_dependencies ]; then if ! [ -e /tmp/update_dependencies ]; then
git_retry -C "$core_repo" fetch origin master && git -C "$core_repo" reset --hard origin/master for repo in "$brew_repo" "$core_repo"; do
git_retry -C "$repo" fetch origin master && git -C "$repo" reset --hard origin/master
done
echo '' | sudo tee /tmp/update_dependencies >/dev/null 2>&1 echo '' | sudo tee /tmp/update_dependencies >/dev/null 2>&1
fi fi
} }