diff --git a/bin/init.sh b/bin/init.sh index 534bf98..bda2008 100644 --- a/bin/init.sh +++ b/bin/init.sh @@ -2,15 +2,13 @@ # 检查 jq 是否安装 if ! command -v jq &> /dev/null; then - echo "jq 未安装, 安装 jq" - - # 如果是ubuntu系统安装jq + echo "安装jq命令" + # 如果是Ubuntu系统 if [ -f /etc/lsb-release ]; then sudo apt-get update sudo apt-get install -y jq fi - - # 如果是centos系统安装jq + # 如果是CentOS系统 if [ -f /etc/redhat-release ]; then sudo yum install -y jq fi