From d16f1712b43d0c3ed0cbc1ece3eb038edc099557 Mon Sep 17 00:00:00 2001 From: crueter Date: Thu, 28 Aug 2025 20:55:42 -0400 Subject: [PATCH] [cmake, tools] fix script compliance Signed-off-by: crueter --- tools/cpm-fetch.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/cpm-fetch.sh b/tools/cpm-fetch.sh index e3bb2d887a..5620996433 100755 --- a/tools/cpm-fetch.sh +++ b/tools/cpm-fetch.sh @@ -118,6 +118,14 @@ do continue fi + VERSION=$(jq -r ".version" <<< "$JSON") + GIT_VERSION=$(jq -r ".git_version" <<< "$JSON") + TAG=$(jq -r ".tag" <<< "$JSON") + SHA=$(jq -r ".sha" <<< "$JSON") + + [ "$GIT_VERSION" == null ] && GIT_VERSION="$VERSION" + [ "$GIT_VERSION" == null ] && GIT_VERSION="$TAG" + # url parsing WOOOHOOHOHOOHOHOH URL=$(jq -r ".url" <<< "$JSON") REPO=$(jq -r ".repo" <<< "$JSON")