Browse Source

github change protocol from git to https

master
pvincent 2 years ago
parent
commit
3fc1b2b7b7
  1. 4
      tools/wget_semver

4
tools/wget_semver

@ -15,7 +15,7 @@ function usage() {
}
function get_github() {
local all_releases=$(git ls-remote --tags --sort="v:refname" git://github.com/"$REPO_NAME" | grep -Eo "v?([0-9]+\.){2}[0-9]+$" )
local all_releases=$(git ls-remote --tags --sort="v:refname" https://github.com/"$REPO_NAME" | grep -Eo "v?([0-9]+\.){2}[0-9]+$")
# extract only VERSION without 'v'
local non_v_release=$(echo "$all_releases" | grep -v v | tail -n1 | cut -f2 | cut -d '/' -f3)
@ -24,7 +24,7 @@ function get_github() {
# extract remaining version including 'v'
local v_release=$(echo "$all_releases" | tail -n1 | cut -f2 | cut -d '/' -f3)
v_release=${v_release%^\{\}} # remove extra characters ^{} from github
# compare which newer from non_v_release to v_release
if [ -n "$non_v_release" ] && [ "v$non_v_release" \> "$v_release" ]; then
echo $non_v_release

Loading…
Cancel
Save