mirror of
https://github.com/alibaba/arthas.git
synced 2026-11-30 15:33:59 +00:00
clean as.sh
This commit is contained in:
1 parent
89e39fb2fc
commit
c3d2f1da6b
1 file changed
-7
@@ -143,13 +143,6 @@ get_remote_version()
|
||||
curl -sLk --connect-timeout ${SO_TIMEOUT} "${ARTHAS_REMOTE_VERSION_URL}" | sed 's/{.*latestVersion":"*\([0-9a-zA-Z\\.\\-]*\)"*,*.*}/\1/'
|
||||
}
|
||||
|
||||
# make version format to comparable format like 000.000.(0){15}
|
||||
# $1 : version
|
||||
to_comparable_version()
|
||||
{
|
||||
echo ${1}|awk -F "." '{printf("%d.%d.%d\n",$1,$2,$3)}'
|
||||
}
|
||||
|
||||
# update arthas if necessary
|
||||
update_if_necessary()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user