From c3d2f1da6bd8c04d950b650c6935aaea44248707 Mon Sep 17 00:00:00 2001 From: hengyunabc Date: Tue, 9 Oct 2018 11:33:08 +0800 Subject: [PATCH] clean as.sh --- bin/as.sh | 7 ------- 1 file changed, 7 deletions(-) diff --git a/bin/as.sh b/bin/as.sh index a7b2e7a5bac..7d20ae13baa 100755 --- a/bin/as.sh +++ b/bin/as.sh @@ -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() {