From 6e8b4af91ba05b08bbf263fe6d98fb7c8732d782 Mon Sep 17 00:00:00 2001 From: Matthias Gatto Date: Tue, 1 Oct 2024 15:12:23 +0200 Subject: [PATCH] get version using full path, so fix api with more than 1 version fields Signed-off-by: Matthias Gatto --- cognac_gen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cognac_gen.sh b/cognac_gen.sh index 7dd9ce8..aa436a7 100755 --- a/cognac_gen.sh +++ b/cognac_gen.sh @@ -203,7 +203,7 @@ EOF replace_args() { - API_VERSION=$(json-search -R version < osc-api.json) + API_VERSION=$(jq -r .info.version < osc-api.json) SDK_VERSION=$(cat sdk-version) while IFS= read -r line do