File: upstream-version.sh

package info (click to toggle)
sysrepo 4.5.3-1
  • links: PTS
  • area: main
  • in suites: experimental
  • size: 6,816 kB
  • sloc: ansic: 86,783; sh: 145; makefile: 29
file content (7 lines) | stat: -rwxr-xr-x 264 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
#!/usr/bin/env bash
# get latest upstream sysrepo version from github

RLS_URL=https://api.github.com/repos/sysrepo/sysrepo/releases
VERSION=$(curl -s $RLS_URL | grep tag_name | cut -d '"' -f 4 | sort --version-sort | tail -n 1)
VERSION=${VERSION#v}
echo $VERSION