balancing the RELEASE prompt

This commit is contained in:
CanbiZ 2024-09-13 18:06:15 +02:00 committed by GitHub
parent b9f1f9b520
commit 01dde0d818
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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//')