修改注释
This commit is contained in:
parent
a76a47ffab
commit
63839669ce
@ -2,15 +2,13 @@
|
|||||||
|
|
||||||
# 检查 jq 是否安装
|
# 检查 jq 是否安装
|
||||||
if ! command -v jq &> /dev/null; then
|
if ! command -v jq &> /dev/null; then
|
||||||
echo "jq 未安装, 安装 jq"
|
echo "安装jq命令"
|
||||||
|
# 如果是Ubuntu系统
|
||||||
# 如果是ubuntu系统安装jq
|
|
||||||
if [ -f /etc/lsb-release ]; then
|
if [ -f /etc/lsb-release ]; then
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y jq
|
sudo apt-get install -y jq
|
||||||
fi
|
fi
|
||||||
|
# 如果是CentOS系统
|
||||||
# 如果是centos系统安装jq
|
|
||||||
if [ -f /etc/redhat-release ]; then
|
if [ -f /etc/redhat-release ]; then
|
||||||
sudo yum install -y jq
|
sudo yum install -y jq
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user