Brave browser (curl lastest version release)

New Contributor

I want to create an extension attribute or policy I dunno yet to basically curl and print the latest version of Brave. So far ai cannot find the bracket on any of there pages that list it as chrome or firefox does. My syntax is right and works for others curls I do but I cannot find what to put bold for Brave.

latestver=/usr/bin/curl -s -A "$userAgent" | grep 'Release Notes' | sed -e 's/. Release Notes="(.)".*/1/' -e 's/"//' | /usr/bin/awk '{print $1}' echo "Latest Version is: $latestver"


Valued Contributor

@m83nyc This is probably a better way, this gets the latest version from Brave's appcast xml:

latestver=$(/usr/bin/curl -s | /usr/bin/sed -n 's/.*shortVersionString=//p' | /usr/bin/tr -d '"' | /usr/bin/tail -n 1)