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