From d3d80424125d39da63de8792ab9db169eeabcb0d Mon Sep 17 00:00:00 2001 From: Razvan Becheriu Date: Thu, 1 Aug 2019 11:48:55 +0300 Subject: [PATCH] [#766, !449] detect sysrepo version --- tools/sysrepo_config | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/sysrepo_config b/tools/sysrepo_config index fd28a86a46..9f18b54111 100755 --- a/tools/sysrepo_config +++ b/tools/sysrepo_config @@ -78,10 +78,8 @@ if [ "$1" = "--libs" ]; then fi if [ "$1" = "--modversion" ]; then - MAJOR="1" - MINOR="0" - PATCH="0" - echo "${MAJOR}.${MINOR}.${PATCH}" + VERSION=`sysrepoctl -v | tr -s " " | cut -d " " -f 7` + echo "${VERSION}" exit 0 fi -- 2.47.2