Revert "fix autoupdate for projects hosted on GitHub"

This reverts commit 9d98e6bd14.
This commit is contained in:
Aditya Alok 2022-03-30 00:44:47 +05:30 committed by Henrik Grimler
parent 2ca2452679
commit 0c412fe300
No known key found for this signature in database
GPG Key ID: B0076E490B71616B

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:4}" >/dev/null; then
tag_name="$(jq --exit-status --raw-output "${jq_filter}" <<<"${response:4}")"
if jq --exit-status --raw-output "${jq_filter}" <<<"${response}" >/dev/null; then
tag_name="$(jq --exit-status --raw-output "${jq_filter}" <<<"${response}")"
else
termux_error_exit "ERROR: Failed to parse tag name from: '${response}'"
fi