From 01dde0d81827609b86acc62f9d0cb3b708a40396 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Fri, 13 Sep 2024 18:06:15 +0200 Subject: [PATCH] balancing the RELEASE prompt --- ct/tianji-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/tianji-install.sh b/ct/tianji-install.sh index ba0f4d70..44af3a96 100644 --- a/ct/tianji-install.sh +++ b/ct/tianji-install.sh @@ -45,7 +45,7 @@ msg_ok "Installed Node.js, pnpm & pm2" msg_info "Setup Tianji (Patience)" cd /opt -RELEASE=$(curl -s https://api.github.com/repos/msgbyte/tianji/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') +RELEASE=$(wget -q https://github.com/msgbyte/tianji/releases/latest -O - | grep "title>Release" | cut -d " " -f 4) wget -q "https://github.com/msgbyte/tianji/archive/refs/tags/${RELEASE}.zip" unzip -q ${RELEASE}.zip CLEAN_RELEASE=$(echo $RELEASE | sed 's/^v//')