File: upstream-version.sh

package info (click to toggle)
libyang 3.13.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,152 kB
  • sloc: ansic: 123,593; xml: 671; sh: 442; tcl: 318; makefile: 19
file content (7 lines) | stat: -rwxr-xr-x 255 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
#!/bin/bash
# get latest upstream libyang version from github

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