This commit is contained in:
pvincent
2024-03-06 09:58:43 +04:00
parent a06a05045e
commit 147f80beaa
5 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -3,7 +3,7 @@
REPO_TYPE=$1
REPO_NAME=$2
function usage() {
function usage {
local BASECMD=$(basename "$0")
echo 'usage: <REPO_TYPE> <REPO_NAME> [DESTINATION]'
echo 'example:'
@@ -14,7 +14,7 @@ function usage() {
exit -1
}
function get_github() {
function get_github {
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'
@@ -33,7 +33,7 @@ function get_github() {
fi
}
function get_artcode() {
function get_artcode {
release=$(git ls-remote --tags --sort="v:refname" \
https://git.artcode.re/$REPO_NAME |
tail -n1 | cut -f2 | cut -d '/' -f3)