From 4c6446b6472bfceb097d87391ada5220bbb004e5 Mon Sep 17 00:00:00 2001 From: xuwei-fit2cloud Date: Tue, 23 Jan 2024 14:57:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Ddectl=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E6=89=A7=E8=A1=8C=E6=9D=A1=E4=BB=B6=E7=9A=84=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- installer/dectl | 2 +- installer/install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/dectl b/installer/dectl index 6e3a85ee3a..4490f559f1 100644 --- a/installer/dectl +++ b/installer/dectl @@ -244,8 +244,8 @@ function reload() { function version() { echo _get_current_version - _get_latest_version echo "current version is $current_version" + _get_latest_version echo "latest version is $latest_version" } function upgrade() { diff --git a/installer/install.sh b/installer/install.sh index 883691c886..9b3f33e441 100644 --- a/installer/install.sh +++ b/installer/install.sh @@ -20,7 +20,7 @@ if [ -f /usr/bin/dectl ]; then dectl stop INSTALL_TYPE='upgrade' - v2_version=$(dectl version |grep "^v2.") + v2_version=$(dectl version | head -n 2 | grep "v2.") if [[ -z $v2_version ]];then echo "系统当前版本不是 DataEase v2 版本系列,不支持升级到 v2,请检查离线包版本。" exit 1;