Skip to main content
Question

Brave browser (curl lastest version release)

  • June 16, 2020
  • 1 reply
  • 10 views

Forum|alt.badge.img+1

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

Forum|alt.badge.img+19
  • Contributor
  • June 16, 2020

@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)