blob: 4489c8e9baf0bb1ce56eaa1e18afddb1a50b01c3 (
plain)
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
|