File tree Expand file tree Collapse file tree 2 files changed +3
-25
lines changed
Expand file tree Collapse file tree 2 files changed +3
-25
lines changed Original file line number Diff line number Diff line change @@ -35,34 +35,21 @@ PLAIN='\033[0m'
3535
3636rm -rf /tmp/report && mkdir /tmp/report
3737
38- # Install locales
38+ echo " 正在安装必要的依赖,请耐心等待..."
39+
3940
40- if [ " ${release} " != " centos" ]; then
41- apt-get update > /dev/null 2>&1
42- apt-get -y install locales > /dev/null 2>&1
43- fi
4441
4542# Install Virt-what
4643if [ ! -e ' /usr/sbin/virt-what' ]; then
4744 echo " Installing Virt-What......"
4845 if [ " ${release} " == " centos" ]; then
49- yum update > /dev/null 2>&1
5046 yum -y install virt-what > /dev/null 2>&1
5147 else
48+ apt-get update
5249 apt-get -y install virt-what > /dev/null 2>&1
5350 fi
5451fi
5552
56- echo " 正在安装必要的依赖,请耐心等待..."
57-
58- # Install ca-certificates
59- echo " Installing ca-certificates......"
60- if [ " ${release} " == " centos" ]; then
61- yum -y install ca-certificates > /dev/null 2>&1
62- else
63- apt-get -y install ca-certificates > /dev/null 2>&1
64- fi
65-
6653# Install uuid
6754echo " Installing uuid......"
6855if [ " ${release} " == " centos" ]; then
Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ echo "Installing required packages, please wait..."
4141if [ ! -e ' /usr/sbin/virt-what' ]; then
4242 echo " Installing Virt-What......"
4343 if [ " ${release} " == " centos" ]; then
44- yum update > /dev/null 2>&1
4544 yum -y install virt-what > /dev/null 2>&1
4645 else
4746 apt-get update > /dev/null 2>&1
5150
5251
5352
54- # Install ca-certificates
55- echo " Installing ca-certificates......"
56- if [ " ${release} " == " centos" ]; then
57- yum -y install ca-certificates > /dev/null 2>&1
58- else
59- apt-get -y install ca-certificates > /dev/null 2>&1
60- fi
61-
6253# Install uuid
6354echo " Installing uuid......"
6455if [ " ${release} " == " centos" ]; then
You can’t perform that action at this time.
0 commit comments