Update docs/Brew-Livecheck.md

Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>
This commit is contained in:
Mohammad Zain Abbas 2022-10-02 19:55:27 +05:00 committed by Sam Ford
parent 50ccb96d77
commit d66104f182
No known key found for this signature in database
GPG Key ID: 7AF5CBEE1DD6F76D

View File

@ -6,7 +6,7 @@ The `brew livecheck` command finds the newest version of a formula or cask's sof
When livecheck isn't given instructions for how to check for upstream versions, it does the following by default:
1. For __formulae__: Collect the `stable`, `head` and `homepage` URLs, in that order. For __casks__: Collect the `appcast`, `url` and `homepage` URLs, in that order. For __resource__: Collect the `url` (since resource's url is considered `stable` by default)
1. For formulae: Collect the `stable`, `head`, and `homepage` URLs, in that order (resources simply use their `url`). For casks: Collect the `url` and `homepage` URLs, in that order.
1. Determine if any strategies apply to the first URL. If not, try the next URL.
1. If a strategy can be applied, use it to check for new versions.
1. Return the newest version (or an error if versions could not be found at any available URLs).