balancing the RELEASE prompt

pull/3726/head
CanbiZ 10 months ago committed by GitHub
parent b9f1f9b520
commit 01dde0d818
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      ct/tianji-install.sh

@ -45,7 +45,7 @@ msg_ok "Installed Node.js, pnpm & pm2"
msg_info "Setup Tianji (Patience)" msg_info "Setup Tianji (Patience)"
cd /opt 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" wget -q "https://github.com/msgbyte/tianji/archive/refs/tags/${RELEASE}.zip"
unzip -q ${RELEASE}.zip unzip -q ${RELEASE}.zip
CLEAN_RELEASE=$(echo $RELEASE | sed 's/^v//') CLEAN_RELEASE=$(echo $RELEASE | sed 's/^v//')

Loading…
Cancel
Save