From c6349dba03afab147f8207668c9ec06bceb5829b Mon Sep 17 00:00:00 2001 From: Kiolow Date: Fri, 19 Jul 2024 17:57:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/init.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/init.sh b/bin/init.sh index 60b2aaa..ffdc8ab 100644 --- a/bin/init.sh +++ b/bin/init.sh @@ -1,5 +1,12 @@ #!/bin/bash +# 检查 jq 是否安装 +if ! command -v jq &> /dev/null; then + echo "jq 未安装" + exit 1 +fi + + # 安装xray bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install @@ -12,4 +19,4 @@ bash $script_dir/update_uuid.sh bash $script_dir/update_key.sh # 打印分享链接 -bash $script_dir/print_share_link.sh \ No newline at end of file +bash $script_dir/print_share_link.sh