1
0
Fork 0
libyang/distro/scripts/upstream-version.sh
Daniel Baumann cfcebb1a7d
Adding upstream version 3.1.0+dfsg.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-05 08:00:08 +01:00

7 lines
255 B
Bash
Executable file

#!/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