Browse Source

bug fix for docker install detect function

master
filesite-io 5 months ago
parent
commit
7b32d45b42
  1. 3
      install.sh

3
install.sh

@ -31,7 +31,8 @@ getCpuType () {
# 检测是否已经安装了docker # 检测是否已经安装了docker
# 返回值:0 - 未安装,1 - 已安装 # 返回值:0 - 未安装,1 - 已安装
detectDockerInstalled () { detectDockerInstalled () {
if [ command -v docker > /dev/null ]; then res=`command -v docker | wc -l`
if [ $res -gt 0 ]; then
return 1 return 1
fi fi

Loading…
Cancel
Save