typo
This commit is contained in:
+3
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user