Update tools.func
This commit is contained in:
parent
4302bf0a64
commit
7e06aa5734
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user