From 90d7e6d61de4c56b860bfdf172762f27c5c5d191 Mon Sep 17 00:00:00 2001 From: unl89 <53639555+unl89@users.noreply.github.com> Date: Thu, 3 Oct 2019 01:53:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9F=90bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 05e1c2c..9a1cccd 100644 --- a/install.sh +++ b/install.sh @@ -50,9 +50,9 @@ x86_64) esac # 笨笨的检测方法 -if [[ $(command -v apt-get) || $(command -v yum) ]] && [[ $(command -v systemctl) ]]; then +if command -v apt-get || command -v yum ; then - if [[ $(command -v yum) ]]; then + if command -v yum ; then cmd="yum"