fix autoupdate for projects hosted on GitHub

This commit is contained in:
Yaksh Bariya 2022-03-29 18:44:37 +05:30
parent 9ea5bff801
commit 9d98e6bd14
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581

View File

@ -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