Jakub Ružička | 9e08f96 | 2021-04-29 21:31:40 +0200 | [diff] [blame] | 1 | #!/bin/bash |
2 | # get latest upstream libyang version from github | ||||
3 | |||||
4 | RLS_URL=https://api.github.com/repos/CESNET/libyang/releases | ||||
5 | VERSION=$(curl -s $RLS_URL | grep tag_name | cut -d '"' -f 4 | sort --version-sort | tail -n 1) | ||||
6 | VERSION=${VERSION#v} | ||||
7 | echo $VERSION |