PKGBUILDs/extra/gn/chromium-gn-version.sh
2020-02-04 04:33:26 +00:00

8 lines
257 B
Bash
Executable file

#!/bin/bash
set -eo pipefail
chromium_version=${1:-$(curl -s https://omahaproxy.appspot.com/linux)}
curl -s https://chromium.googlesource.com/chromium/src/+/$chromium_version/DEPS?format=TEXT |
base64 -d | grep -Po "'gn_version': 'git_revision:\K[^']*"