Brave browser (curl lastest version release)

m83nyc
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" https://brave.com/latest/ | grep 'Release Notes' | sed -e 's/. Release Notes="(.)".*/1/' -e 's/"//' | /usr/bin/awk '{print $1}' echo "Latest Version is: $latestver"

1 REPLY 1

ryan_ball
Valued Contributor

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

latestver=$(/usr/bin/curl -s https://updates.bravesoftware.com/sparkle/Brave-Browser/stable/appcast.xml | /usr/bin/sed -n 's/.*shortVersionString=//p' | /usr/bin/tr -d '"' | /usr/bin/tail -n 1)