fix autoupdate for projects hosted on GitHub
This commit is contained in:
parent
9ea5bff801
commit
9d98e6bd14
@ -89,8 +89,8 @@ termux_github_api_get_tag() {
|
||||
|
||||
local tag_name
|
||||
if [[ "${http_code}" == "200" ]]; then
|
||||
if jq --exit-status --raw-output "${jq_filter}" <<<"${response}" >/dev/null; then
|
||||
tag_name="$(jq --exit-status --raw-output "${jq_filter}" <<<"${response}")"
|
||||
if jq --exit-status --raw-output "${jq_filter}" <<<"${response:4}" >/dev/null; then
|
||||
tag_name="$(jq --exit-status --raw-output "${jq_filter}" <<<"${response:4}")"
|
||||
else
|
||||
termux_error_exit "ERROR: Failed to parse tag name from: '${response}'"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user