Skip to content

Commit a0d2bec

Browse files
authored
Tianji: Update dependencies (#4968)
* Update tianji-install.sh * Also check jq in update
1 parent 0178742 commit a0d2bec

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ct/tianji.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ function update_script() {
2626
msg_error "No ${APP} Installation Found!"
2727
exit
2828
fi
29+
if ! command -v jq &>/dev/null; then
30+
$STD apt-get install -y jq
31+
fi
2932
if ! command -v node >/dev/null || [[ "$(/usr/bin/env node -v | grep -oP '^v\K[0-9]+')" != "22" ]]; then
3033
msg_info "Installing Node.js 22"
3134
$STD apt-get purge -y nodejs

install/tianji-install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ $STD apt-get install -y \
2222
build-essential \
2323
git \
2424
make \
25-
ca-certificates
25+
ca-certificates \
26+
jq
2627
msg_ok "Installed Dependencies"
2728

2829
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

0 commit comments

Comments
 (0)