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