修改注释

This commit is contained in:
Kiolow 2024-12-15 21:12:14 +08:00
parent a76a47ffab
commit 63839669ce

View File

@ -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