diff options
Diffstat (limited to 'ublock-origin-combined/build-orig-tarball.sh')
-rwxr-xr-x | ublock-origin-combined/build-orig-tarball.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ublock-origin-combined/build-orig-tarball.sh b/ublock-origin-combined/build-orig-tarball.sh index e804468..a3f3d61 100755 --- a/ublock-origin-combined/build-orig-tarball.sh +++ b/ublock-origin-combined/build-orig-tarball.sh @@ -59,7 +59,7 @@ show_xpi_for_latest_tag() { _url2="https://github.com$( echo "${_page1}" | grep -oE 'href=[^>]+\/tag\/[^>]+' | sort -n | tail -n1 | sed -r -e "s/^href=[\"']?//;" -e 's/"$//;' )" _page2="$( curl -s "${_url2}" )" #echo "${_page2}" - _asset="https://github.com$( echo "${_page2}" | sed -n '/Assets/,$p' ~/foo2 | grep -oE "href=.*\.xpi" | sed -r -e "s/^href=[\"']?//;" )" + _asset="https://github.com$( echo "${_page2}" | sed -n '/Assets/,$p' | grep -oE "href=.*\.xpi" | sed -r -e "s/^href=[\"']?//;" )" echo "${_asset}" } @@ -71,7 +71,7 @@ show_xpi_for_latest_tag() { ## 1. learn latest version file #url_contents="$( curl -s "${frontpageurl}" )" #latest_file="$( echo "${url_contents}" | awk -F'[=>]' '/class="btn".*>Download</{print $4}' | sed -r -e 's/^"//g;' -e 's/"$//g;' | head -n1 )" -latest_file="$( show_xpi_for_latest_tag "https://github.com/gorhill/uBlock-origin-for-firefox-legacy" )" +latest_file="$( show_xpi_for_latest_tag "https://github.com/gorhill/uBlock-for-firefox-legacy" )" latest_version="$( basename "${latest_file}" | grep -oE '_[0-9\.]+' | sed -r -e 's/^_//;' -e 's/\.$//;' )" ## 2. dl it |