Jakub Ružička | 891b73a | 2021-07-14 17:26:48 +0200 | [diff] [blame] | 1 | #!/bin/bash |
2 | # get latest upstream libnetconf2 version from github | ||||
3 | |||||
4 | RLS_URL=https://api.github.com/repos/CESNET/libnetconf2/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 |