File: upstream-version.sh

package info (click to toggle)
libyang2 2.1.30-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,644 kB
  • sloc: ansic: 111,444; sh: 472; xml: 394; exp: 109; makefile: 15
file content (7 lines) | stat: -rwxr-xr-x 255 bytes parent folder | download | duplicates (4)
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