diff --git a/hy2.sh b/hy2.sh index 1b52298..a379ec7 100644 --- a/hy2.sh +++ b/hy2.sh @@ -96,7 +96,7 @@ wait_for_apt_lock() { } apt_update_and_install_base() { - if ! confirm_yn "即将执行 apt update 并安装基础依赖 curl sed ufw openssl,是否继续?"; then + if ! confirm_yn "即将执行 apt update 并安装基础依赖 jq curl sed ufw openssl,是否继续?"; then red "已取消。" exit 1 fi @@ -109,7 +109,7 @@ apt_update_and_install_base() { blue "==> 安装基础依赖" wait_for_apt_lock 300 || { red "APT 被占用,无法继续。"; exit 1; } - apt install -y curl sed ufw openssl + apt install -y jq curl sed ufw openssl } disable_existing_firewalls() {