From 237499e4d7ae66f3257404a784a1ac9ff38094c5 Mon Sep 17 00:00:00 2001 From: MickLesk Date: Thu, 7 May 2026 21:12:11 +0200 Subject: [PATCH] refactor(tools): format jq command for better readability in get_latest_gh_tag function --- misc/tools.func | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/misc/tools.func b/misc/tools.func index 206c2dc83..dd01b4619 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -2095,10 +2095,10 @@ get_latest_gh_tag() { local count count=$(jq 'length' "$temp_file" 2>/dev/null || echo 0) if [[ "$count" -gt 0 ]]; then - tag=$(jq -r '.[].ref' "$temp_file" \ - | sed 's|^refs/tags/||' \ - | sort -V \ - | tail -n1) + tag=$(jq -r '.[].ref' "$temp_file" | + sed 's|^refs/tags/||' | + sort -V | + tail -n1) fi else # No prefix: just take the first (newest) tag from /tags