Skip to content

Commit 21911cc

Browse files
author
ylws
committed
修复等待时间过长问题
1 parent 7142937 commit 21911cc

File tree

2 files changed

+3
-25
lines changed

2 files changed

+3
-25
lines changed

ZBench-CN.sh

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -35,34 +35,21 @@ PLAIN='\033[0m'
3535

3636
rm -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
4643
if [ ! -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
5451
fi
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
6754
echo "Installing uuid......"
6855
if [ "${release}" == "centos" ]; then

ZBench.sh

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ echo "Installing required packages, please wait..."
4141
if [ ! -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
@@ -51,14 +50,6 @@ fi
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
6354
echo "Installing uuid......"
6455
if [ "${release}" == "centos" ]; then

0 commit comments

Comments
 (0)