Update tools.func

This commit is contained in:
CanbiZ 2025-05-13 10:10:14 +02:00
parent 4302bf0a64
commit 7e06aa5734

View File

@ -568,7 +568,7 @@ fetch_and_deploy_gh_release() {
fi fi
tag=$(echo "$api_response" | jq -r '.tag_name // .name // empty') tag=$(echo "$api_response" | jq -r '.tag_name // .name // empty')
[[ "$tag" =~ ^v[0-9] ]] && tag="${tag:1}" version="${tag#v}"
if [[ -z "$tag" ]]; then if [[ -z "$tag" ]]; then
$STD msg_info "Empty tag received, retrying...\n" $STD msg_info "Empty tag received, retrying...\n"