File: upstream-version.sh

package info (click to toggle)
libnetconf2 3.7.10-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,200 kB
  • sloc: ansic: 33,538; sh: 49; makefile: 21
file content (7 lines) | stat: -rwxr-xr-x 263 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
#!/bin/bash
# get latest upstream libnetconf2 version from github

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