diff options
author | B Stack <bgstack15@gmail.com> | 2021-02-01 16:03:26 +0000 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2021-02-01 16:03:26 +0000 |
commit | 6bfb1db47c963a798f930585581dd94188961d30 (patch) | |
tree | 766a14554f6b2aeb7cc9c2e19dc6f5abdf18de09 /ublock-origin-combined/build-orig-tarball.sh | |
parent | Merge branch 'irfanview-bump' into 'master' (diff) | |
parent | ubo 1.16.4.28 (diff) | |
download | stackrpms-6bfb1db47c963a798f930585581dd94188961d30.tar.gz stackrpms-6bfb1db47c963a798f930585581dd94188961d30.tar.bz2 stackrpms-6bfb1db47c963a798f930585581dd94188961d30.zip |
Merge branch 'ublock-bump' into 'master'
Ublock bump
See merge request bgstack15/stackrpms!213
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 |