From a0d2bece1d4e93cd84f7bcd77893e0a00cb530fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Wed, 4 Jun 2025 21:24:44 +0200 Subject: [PATCH] Tianji: Update dependencies (#4968) * Update tianji-install.sh * Also check jq in update --- ct/tianji.sh | 3 +++ install/tianji-install.sh | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ct/tianji.sh b/ct/tianji.sh index ed89d07d2..1e9065782 100644 --- a/ct/tianji.sh +++ b/ct/tianji.sh @@ -26,6 +26,9 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit fi + if ! command -v jq &>/dev/null; then + $STD apt-get install -y jq + fi if ! command -v node >/dev/null || [[ "$(/usr/bin/env node -v | grep -oP '^v\K[0-9]+')" != "22" ]]; then msg_info "Installing Node.js 22" $STD apt-get purge -y nodejs diff --git a/install/tianji-install.sh b/install/tianji-install.sh index 56d079a38..5f7742855 100644 --- a/install/tianji-install.sh +++ b/install/tianji-install.sh @@ -22,7 +22,8 @@ $STD apt-get install -y \ build-essential \ git \ make \ - ca-certificates + ca-certificates \ + jq msg_ok "Installed Dependencies" NODE_VERSION="22" NODE_MODULE="pnpm@$(curl -s https://raw.githubusercontent.com/msgbyte/tianji/master/package.json | jq -r '.packageManager | split("@")[1]')" install_node_and_modules